Skip to content

Commit

Permalink
issue #1075 check the url keys are expected
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Sep 20, 2019
1 parent dcaf31f commit 7e154ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/permalinks.php
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 7e154ab

Please sign in to comment.