From e0227b58048da271f58e94db4353908eca56f817 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 3 Dec 2010 17:21:09 +0000 Subject: Cache handler needs to support _ in views git-svn-id: http://code.elgg.org/elgg/trunk@7520 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/handlers/cache_handler.php | 4 ++-- 1 file 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'; -- cgit v1.2.3