diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-03 17:21:09 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-03 17:21:09 +0000 |
commit | e0227b58048da271f58e94db4353908eca56f817 (patch) | |
tree | 2fd7d454827e8be5be6f5698c0d4cb40ad118969 /engine/handlers/cache_handler.php | |
parent | 23e42c40ad470cfb9dabb6856b06deb6da12e52a (diff) | |
download | elgg-e0227b58048da271f58e94db4353908eca56f817.tar.gz elgg-e0227b58048da271f58e94db4353908eca56f817.tar.bz2 |
Cache handler needs to support _ in views
git-svn-id: http://code.elgg.org/elgg/trunk@7520 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/handlers/cache_handler.php')
-rw-r--r-- | engine/handlers/cache_handler.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/handlers/cache_handler.php b/engine/handlers/cache_handler.php index d08863a00..557b37835 100644 --- a/engine/handlers/cache_handler.php +++ b/engine/handlers/cache_handler.php @@ -40,8 +40,8 @@ $dataroot = $row->value; $dirty_request = $_GET['request']; -// only alphanumeric characters plus / and . and no '..' -$filter = array("options" => array("regexp" => "/^(\.?[a-zA-Z0-9\/]+)+$/")); +// only alphanumeric characters plus /, ., and _ and no '..' +$filter = array("options" => array("regexp" => "/^(\.?[_a-zA-Z0-9\/]+)+$/")); $request = filter_var($dirty_request, FILTER_VALIDATE_REGEXP, $filter); if (!$request) { echo 'Cache error: bad request'; |