diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-30 10:59:00 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-30 10:59:00 -0800 |
commit | 299da7b54f17408a53f7771305bcdd22ef94ec36 (patch) | |
tree | cefbf11ca95b83be8f62de1f4959a6bf8ae5f6ec | |
parent | 1b41ad8c42ef02245147c75d8cb87e65712b1843 (diff) |
Don't allow the extra "/?" sequence (ie: "/index.php/?kohana_uri=...") in the generated .htaccess files.
-rw-r--r-- | modules/gallery/helpers/access.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php index f54afa10..88a02ce2 100644 --- a/modules/gallery/helpers/access.php +++ b/modules/gallery/helpers/access.php @@ -610,6 +610,7 @@ class access_Core { } $base_url = url::site("?kohana_uri=/file_proxy"); + $base_url = str_replace("/?", "?", $base_url); foreach ($dirs as $dir) { if ($value === self::DENY) { $fp = fopen("$dir/.htaccess", "w+"); |