Browse code

Auch @ darf im Mailbox-Pfad vorkommen

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@575 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on30/07/2007 21:02:13
Showing1 changed files
... ...
@@ -52,9 +52,12 @@ function filter_shell( $input )
52 52
 
53 53
 function check_path( $input )
54 54
 {
55
+  DEBUG("checking {$input} for valid path name");
55 56
   if ($input != filter_input_general($input))
57
+  {
58
+    DEBUG("HTML-Krams im Pfad");
56 59
     return False;
57
-  DEBUG("checking {$input} for valid path name");
60
+  }
58 61
   $components = explode("/", $input);
59 62
   foreach ($components AS $item)
60 63
   {
... ...
@@ -63,7 +66,7 @@ function check_path( $input )
63 66
       return False;
64 67
     }
65 68
   }
66
-  return (preg_match('/^[a-z0-9.\/_-]*$/',$input) == 1);
69
+  return (preg_match('/^[a-z0-9.@\/_-]*$/',$input) == 1);
67 70
 }
68 71
 
69 72