From 32a3cb1021ebbde5b848e1c3405ff3d9f0d5b4d3 Mon Sep 17 00:00:00 2001 From: Edoardo Vacchi Date: Wed, 4 Dec 2013 20:28:15 +0100 Subject: [PATCH] fix unfortunate use of '/' as a regex delimiter in preg_match --- fp-includes/core/core.static.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-includes/core/core.static.php b/fp-includes/core/core.static.php index 8e2a97e..fee3d84 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); }