]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Session fix for PHP 5.3 configurations where cookies are excluded from $_REQUEST...
authorBrion Vibber <brion@pobox.com>
Fri, 12 Feb 2010 23:24:15 +0000 (15:24 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 12 Feb 2010 23:24:15 +0000 (15:24 -0800)
lib/util.php

index a07fe49e33d4502506fd3fc04450abe334d48321..209dc2254ed321c5da7418df812f7026d1ce0c2d 100644 (file)
@@ -367,7 +367,8 @@ function common_current_user()
 
     if ($_cur === false) {
 
-        if (isset($_REQUEST[session_name()]) || (isset($_SESSION['userid']) && $_SESSION['userid'])) {
+        if (isset($_COOKIE[session_name()]) || isset($_GET[session_name()])
+            || (isset($_SESSION['userid']) && $_SESSION['userid'])) {
             common_ensure_session();
             $id = isset($_SESSION['userid']) ? $_SESSION['userid'] : false;
             if ($id) {