diff options
author | swiergot <swiergot> | 2007-08-16 02:25:04 +0200 |
---|---|---|
committer | swiergot <swiergot> | 2007-08-16 02:25:04 +0200 |
commit | 14df0d4b8d95f4c0240c0bd98c6ce9b74706e3ca (patch) | |
tree | 6aa8f1250ffe26ffe980d5aa77205586a236dfb0 /web/html/logout.php | |
parent | fe84915465ac941356f50cc07925e3fd42615955 (diff) | |
download | aur-14df0d4b8d95f4c0240c0bd98c6ce9b74706e3ca.tar.gz aur-14df0d4b8d95f4c0240c0bd98c6ce9b74706e3ca.tar.xz |
- Applied a patch from Loui to fix session removal.
- Replaced all occurences of mysql_escape_string()
with mysql_real_escape_string().
Diffstat (limited to 'web/html/logout.php')
-rw-r--r-- | web/html/logout.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/logout.php b/web/html/logout.php index dac7831b..be4027f7 100644 --- a/web/html/logout.php +++ b/web/html/logout.php @@ -11,9 +11,9 @@ set_lang(); # this sets up the visitor's language # sending any HTML output. # if (isset($_COOKIE["AURSID"])) { - $q = "DELETE FROM Sessions WHERE SessionID = '"; - $q.= mysql_escape_string($_COOKIE["AURSID"]) . "'"; $dbh = db_connect(); + $q = "DELETE FROM Sessions WHERE SessionID = '"; + $q.= mysql_real_escape_string($_COOKIE["AURSID"]) . "'"; db_query($q, $dbh); setcookie("AURSID", "", time() - (60*60*24*30), "/"); setcookie("AURLANG", "", time() - (60*60*24*30), "/"); |