From: Pierre Habouzit (MadCoder Date: Sun, 2 Jan 2005 14:00:38 +0000 (+0000) Subject: wibble X-Git-Tag: xorg/old~543 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7150a577307e36d21e5069a9cb38d7021d17df46;p=platal.git wibble git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-205 --- diff --git a/htdocs/banana/include/session.inc.php b/htdocs/banana/include/session.inc.php index f2148fe..9d48525 100644 --- a/htdocs/banana/include/session.inc.php +++ b/htdocs/banana/include/session.inc.php @@ -7,11 +7,7 @@ * Copyright: See COPYING files that comes with this distribution ********************************************************************************/ -$sname = $_SERVER['SCRIPT_NAME']; -$array = explode('/',$sname); -$sname = array_pop($array); -unset($array); -switch ($sname) { +switch (basename($_SERVER['SCRIPT_NAME'])) { case 'thread.php': if (!Session::has('bananapostok')) { $_SESSION['bananapostok'] = true;