From 088874004d0d984c925d1cced61f3657cc412b42 Mon Sep 17 00:00:00 2001 From: David M Date: Sun, 22 Jul 2007 22:15:09 +0000 Subject: [PATCH] validation git-svn-id: file:///svn/phpbb/trunk@7921 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/style.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/style.php b/phpBB/style.php index 36fea2d554..3578993691 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -33,7 +33,7 @@ if (!empty($load_extensions)) } -$sid = (isset($_GET['sid'])) ? htmlspecialchars($_GET['sid']) : ''; +$sid = (isset($_GET['sid']) && !is_array($_GET['sid'])) ? htmlspecialchars($_GET['sid']) : ''; $id = (isset($_GET['id'])) ? intval($_GET['id']) : 0; if (strspn($sid, 'abcdefABCDEF0123456789') !== strlen($sid))