summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorMichael <savetheinternet@tinyboard.org>2013-06-18 10:45:13 -0700
committerMichael <savetheinternet@tinyboard.org>2013-06-18 10:45:13 -0700
commit0ac9dd5f25ffd9969786567cf7f3081c39f4e0c7 (patch)
treefd8e8bce38293493b1565147e1bbc3e3fdb7b875 /mod.php
parentcbc3bd0c0a13463dbdbc3d53a03dd9b2080496c4 (diff)
parent399aa463b3d046a49c861a2c60c997f39af22561 (diff)
Merge pull request #115 from Macil/miscfixes
Miscellaneous fixes
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 8045cf47..eb99c0fb 100644
--- a/mod.php
+++ b/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;