mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug #602, less strict check on section url parameter
git cherry-pick f93a312e08
This commit is contained in:
@@ -39,7 +39,7 @@ for ($i=0; $i<count($sections); $i++)
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($sections[$i] == '..' or !preg_match('/^[a-zA-Z_\.-]+$/', $sections[$i]))
|
||||
if ($sections[$i] == '..' or !preg_match('/^[a-zA-Z0-9_\.-]+$/', $sections[$i]))
|
||||
{
|
||||
die('invalid section token ['.htmlentities($sections[$i]).']');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user