Browse code

check auf hostname

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

bernd authored on 08/08/2007 13:01:47
Showing 1 changed files
... ...
@@ -40,6 +40,12 @@ function filter_input_username( $input )
40 40
         return ereg_replace("[^[:alnum:]\_\.\+\-]", "", $input );
41 41
 }
42 42
 
43
+function filter_input_hostname( $input )
44
+{
45
+        $input = strtolower($input);
46
+        return ereg_replace("[^[:alnum:]äöü\.\-]", "", $input );
47
+}
48
+
43 49
 function filter_quotes( $input )
44 50
 {
45 51
         return ereg_replace('["\'`]', '', $input );
... ...
@@ -63,6 +69,7 @@ function check_path( $input )
63 69
   {
64 70
     if ($item == '..')
65 71
     {
72
+      DEBUG("»..« im Pfad");
66 73
       return False;
67 74
     }
68 75
   }