Code

Validate application option names upper and lower case
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Jun 2005 05:18:45 +0000 (05:18 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Jun 2005 05:18:45 +0000 (05:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@903 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/class_applicationParameters.inc

index de1d0495c967a052f4efeb48bfd8f568f53d1ede..bf4d99c1e31c6087e83b01b6cbb40cf7ca28126b 100644 (file)
@@ -145,7 +145,7 @@ class applicationParameters extends plugin
 
        /* Check for valid option names */
        for ($i= 0; $i<count($this->option_name); $i++){
-               if (!preg_match ("/^[a-z0-9_]+$/", $this->option_name[$i])){
+               if (!preg_match ("/^[a-z0-9_]+$/i", $this->option_name[$i])){
                        $message[]= sprintf(_("Value '%s' specified as option name is not valid."), 
                                        $this->option_name[$i]);
                }