From 1eca2d231c79c046a3c122a09bd761fa8f641a6e Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 19 May 2009 15:59:55 +0000 Subject: Many interface changes: add 'back to the top links', a variable to display more bookmarks for admins... git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@329 b3834d28-1941-0410-a4f8-b48e95affb8f --- admin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'admin.php') diff --git a/admin.php b/admin.php index c51d925..6061565 100644 --- a/admin.php +++ b/admin.php @@ -46,10 +46,9 @@ if ( !$currentUser->isAdmin() ) { } @list($url, $action, $user) = isset($_SERVER['PATH_INFO']) ? explode('/', $_SERVER['PATH_INFO']) : NULL; - if ( $action -&& strpos($_SERVER['HTTP_REFERER'], ROOT.'admin.php') === 0 // Prevent CSRF attacks +&& (strpos($_SERVER['HTTP_REFERER'], ROOT.'admin') === 0) // Prevent CSRF attacks ) { switch ( $action ) { case 'delete': -- cgit v1.2.3