diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-07-13 21:54:52 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-07-13 21:54:52 +1000 |
| commit | d32f2c43e867eb79e656f290ef46d68d94de9469 (patch) | |
| tree | 5f4f5bfb5500f2a2361be01b1f143d68e8b0c073 /inc/mod.php | |
| parent | 00c9e21f6da2c3fbd16e8b09fc436bebf10ec7a1 (diff) | |
don't ignore config[cookies][mod]
Diffstat (limited to 'inc/mod.php')
| -rw-r--r-- | inc/mod.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/mod.php b/inc/mod.php index a764cfbc..0887cd07 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -115,9 +115,9 @@ $query->execute() or error(db_error($query)); } - if(isset($_COOKIE['mod']) && isset($_SESSION['mod']) && is_array($_SESSION['mod'])) { + if(isset($_COOKIE[$config['cookies']['mod']]) && isset($_SESSION['mod']) && is_array($_SESSION['mod'])) { // Should be username:session hash - $cookie = explode(':', $_COOKIE['mod']); + $cookie = explode(':', $_COOKIE[$config['cookies']['mod']]); if(count($cookie) != 2) { destroyCookies(); error($config['error']['malformed']); |
