From 5e917bf20969511b5c819e96be7c1c84ddd8be68 Mon Sep 17 00:00:00 2001 From: Edoardo Vacchi Date: Mon, 9 Dec 2013 16:50:09 +0100 Subject: [PATCH] should finally fix static validation issues --- fp-includes/core/core.static.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp-includes/core/core.static.php b/fp-includes/core/core.static.php index fee3d84..577d437 100755 --- a/fp-includes/core/core.static.php +++ b/fp-includes/core/core.static.php @@ -34,7 +34,7 @@ } function static_isvalid($id) { - return !preg_match('![^./\\\\]+!', $id); + return preg_match('![^./\\\\]+!', $id); } @@ -59,6 +59,7 @@ } function static_exists($id) { + print_r("aaa".static_isvalid($id)); if (!static_isvalid($id)) return false; $fname = STATIC_DIR . $id . EXT;