From: brettp Date: Fri, 3 Dec 2010 17:21:09 +0000 (+0000) Subject: Cache handler needs to support _ in views X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e0227b58048da271f58e94db4353908eca56f817;p=lorea%2Felgg.git Cache handler needs to support _ in views git-svn-id: http://code.elgg.org/elgg/trunk@7520 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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';