From 3a29347e600aa643c6f64c8aa6c9351c04034859 Mon Sep 17 00:00:00 2001 From: Jason Ghent Date: Mon, 14 Sep 2020 05:01:55 -0400 Subject: [PATCH] [ParameterValidator] Ignore cache-busting param (#1723) --- lib/ParameterValidator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ParameterValidator.php b/lib/ParameterValidator.php index 149e8a40..12e07942 100644 --- a/lib/ParameterValidator.php +++ b/lib/ParameterValidator.php @@ -135,6 +135,9 @@ class ParameterValidator { return false; foreach($data as $name => $value) { + // Some RSS readers add a cache-busting parameter (_=) to feed URLs, detect and ignore them. + if ($name === '_') continue; + $registered = false; foreach($parameters as $context => $set) { if(array_key_exists($name, $set)) {