Commit e9d8e9b8 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Support canonical links to accounts



Addresses FS#9582 and FS#21600.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent cf2f6675
......@@ -75,7 +75,11 @@ if (isset($_COOKIE["AURSID"])) {
$q = "SELECT Users.*, AccountTypes.AccountType ";
$q.= "FROM Users, AccountTypes ";
$q.= "WHERE AccountTypes.ID = Users.AccountTypeID ";
$q.= "AND Users.ID = ".intval(in_request("ID"));
if (isset($_REQUEST["ID"])) {
$q.= "AND Users.ID = ".intval(in_request("ID"));
} else {
$q.= "AND Users.Username = '".db_escape_string(in_request("U")) . "'";
}
$result = db_query($q, $dbh);
if (!mysql_num_rows($result)) {
print __("Could not retrieve information for the specified user.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment