mod.php: Don't freak out if extra dummy query parameters are added.
(Such as for cache-avoidance.)
This commit is contained in:
parent
b6fc7ca89d
commit
fa9c2a0fd1
2
mod.php
2
mod.php
@ -105,7 +105,7 @@ $new_pages = array();
|
||||
foreach ($pages as $key => $callback) {
|
||||
if (preg_match('/^secure /', $callback))
|
||||
$key .= '(/(?P<token>[a-f0-9]{8}))?';
|
||||
$new_pages[@$key[0] == '!' ? $key : "!^$key$!"] = $callback;
|
||||
$new_pages[@$key[0] == '!' ? $key : '!^' . $key . '(?:&[^&=]+=[^&]*)*$!'] = $callback;
|
||||
}
|
||||
$pages = $new_pages;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user