From 1de40e68393be43fa818a1504dbebb8e39439840 Mon Sep 17 00:00:00 2001 From: David M Date: Mon, 16 Apr 2007 01:30:48 +0000 Subject: [PATCH] #9879 git-svn-id: file:///svn/phpbb/trunk@7362 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/style.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/style.php b/phpBB/style.php index 7a2ed500c6..4ea1d51aaa 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -36,7 +36,7 @@ if (!empty($load_extensions)) $sid = (isset($_GET['sid'])) ? htmlspecialchars($_GET['sid']) : ''; $id = (isset($_GET['id'])) ? intval($_GET['id']) : 0; -if (!ctype_alnum($sid)) +if (strspn($str, 'abcdefABCDEF0123456789') !== strlen($str)) { $sid = ''; } @@ -129,7 +129,7 @@ if ($id && $sid) $cache->destroy('sql', STYLES_THEME_TABLE); } - header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 3600)); + //header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 3600)); header('Content-type: text/css'); // Parse Theme Data