Code

Updated viewport
[gosa.git] / test
diff --git a/test b/test
index ff8262398ce563211f22cb1ca5bcc0af7b54c145..3c8f54fe20355daecd2efab71df836af6c8edcfa 100755 (executable)
--- a/test
+++ b/test
@@ -4,9 +4,17 @@
 /* This is good for testing... */
 error_reporting (E_ALL | E_STRICT);
 
+/* Escape all preg_* relevant characters */
+function normalizePreg($input)
+{
+  return (addcslashes($input, '[]()|/.*+-'));
+}
+
+
+
 /* Initiate autoloader... */
 require_once("include/autoload.inc");
-
+restore_error_handler();
 try {
 
        /* Get new test instance of the Configuration */