mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
- Applied a patch from Loui to fix session removal.
- Replaced all occurences of mysql_escape_string() with mysql_real_escape_string().
This commit is contained in:
parent
9ab02ad6a7
commit
0b92839bee
8 changed files with 71 additions and 71 deletions
|
@ -106,7 +106,7 @@ if (isset($_COOKIE["AURSID"])) {
|
|||
$q.= "WHERE AccountTypes.ID = Users.AccountTypeID ";
|
||||
$q.= "AND Users.ID = Sessions.UsersID ";
|
||||
$q.= "AND Sessions.SessionID = '";
|
||||
$q.= mysql_escape_string($_COOKIE["AURSID"])."'";
|
||||
$q.= mysql_real_escape_string($_COOKIE["AURSID"])."'";
|
||||
$result = db_query($q, $dbh);
|
||||
if (!mysql_num_rows($result)) {
|
||||
print __("Could not retrieve information for the specified user.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue