Skip to content

Commit

Permalink
[ParameterValidator] Ignore cache-busting param
Browse files Browse the repository at this point in the history
Addresses RSS-Bridge#1701
  • Loading branch information
JasonGhent authored Aug 31, 2020
1 parent 46abc18 commit 8ded79b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ParameterValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ public function validateData(&$data, $parameters){
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)) {
Expand Down

0 comments on commit 8ded79b

Please sign in to comment.