mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-31 06:02:00 +01:00
fixes #1750 input parameter check was too strong
This commit is contained in:
1 parent
51d2112e76
commit
ba08bffcb2
1 file changed
+1
-1
@@ -712,7 +712,7 @@ function parse_well_known_params_url($tokens, &$i)
|
||||
foreach ($page['chronology_date'] as $date_token)
|
||||
{
|
||||
// each date part must be an integer (number of the year, number of the month, number of the week or number of the day)
|
||||
if (!preg_match('/^\d+$/', $date_token))
|
||||
if (!preg_match('/^(\d+|any)$/', $date_token))
|
||||
{
|
||||
fatal_error('bad chronology field (date)');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user