From 7150a577307e36d21e5069a9cb38d7021d17df46 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Sun, 2 Jan 2005 14:00:38 +0000 Subject: [PATCH] wibble git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-205 --- htdocs/banana/include/session.inc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.1.4