Commit: 65f5e8ac754ae19d1987f1523e61f8c2e3207fe9 Author: Sobak <msobaczew...@gmail.com> Wed, 9 Apr 2014 07:25:44 +0200 Parents: f6e051a16be00c9a496add8f4dfc8b776261a597 Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=65f5e8ac754ae19d1987f1523e61f8c2e3207fe9 Log: Use nice URLs where it's possible We trust our usernames, don't we? There is limited ammount of characters that can be used so they probably won't destroy anything in this context. Changed paths: M index.php Diff: diff --git a/index.php b/index.php index 3f90e53..25935b1 100644 --- a/index.php +++ b/index.php @@ -26,7 +26,7 @@ $page = filter_input(INPUT_GET, "page", FILTER_VALIDATE_INT, array("options" => <?php foreach (findAllUsers($page) as $x => $user): ?> <tr> <td class="gravatar"><img src="//www.gravatar.com/avatar/<?php echo md5($user["username"] . "@php.net")?>.jpg" alt="Picture of <?php $user["name"] ?>" height="80" width="80" /></td> - <td class="username"><a href="user.php?username=<?php echo $user["username"]?>"><?php echo $user["username"] ?></a></td> + <td class="username"><a href="/<?php echo $user["username"]?>"><?php echo $user["username"] ?></a></td> <td class="name"><?php echo $user["name"] ?></td> </tr> <?php endforeach ?> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php