Code

Prepared for RequestHandler
[gosa.git] / test
diff --git a/test b/test
index ff8262398ce563211f22cb1ca5bcc0af7b54c145..c023fd69ce70ef93f135b19abe680f44ef57cb52 100755 (executable)
--- a/test
+++ b/test
@@ -1,12 +1,22 @@
 #!/usr/bin/php
+
 <?php
 
+
 /* 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 */