[ParameterValidator] Ignore cache-busting param (#1723)

This commit is contained in:
Jason Ghent 2020-09-14 05:01:55 -04:00 committed by GitHub
parent d299adb827
commit 3a29347e60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ class ParameterValidator {
return false;
foreach($data as $name => $value) {
// Some RSS readers add a cache-busting parameter (_=<timestamp>) to feed URLs, detect and ignore them.
if ($name === '_') continue;
$registered = false;
foreach($parameters as $context => $set) {
if(array_key_exists($name, $set)) {