mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
issue #1075 check the url keys are expected
This commit is contained in:
@@ -26,6 +26,12 @@ function parse_sort_variables(
|
||||
{
|
||||
$base_url .= $is_first ? '?' : '&';
|
||||
$is_first = false;
|
||||
|
||||
if (!in_array($key, array('page', 'psf', 'dpsf', 'pwg_token')))
|
||||
{
|
||||
fatal_error('unexpected URL get key');
|
||||
}
|
||||
|
||||
$base_url .= urlencode($key).'='.urlencode($value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user