validation

git-svn-id: file:///svn/phpbb/trunk@7921 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-07-22 22:15:09 +00:00
parent ec1da5b1fd
commit 088874004d

View file

@ -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; $id = (isset($_GET['id'])) ? intval($_GET['id']) : 0;
if (strspn($sid, 'abcdefABCDEF0123456789') !== strlen($sid)) if (strspn($sid, 'abcdefABCDEF0123456789') !== strlen($sid))