bernd commited on 2007-11-23 06:29:23
Zeige 1 geänderte Dateien mit 2 Einfügungen und 0 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@805 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -70,6 +70,8 @@ function filter_input_hostname( $input ) |
| 70 | 70 |
$input = str_replace(array('Ä', 'Ö', 'Ü'), array('ä', 'ö', 'ü'), strtolower($input));
|
| 71 | 71 |
if (ereg_replace("[^[:alnum:]äöü\.\-]", "", $input ) != $input)
|
| 72 | 72 |
system_failure("Ihre Daten enthielten ungültige Zeichen!");
|
| 73 |
+ if (strstr($input, '..')) |
|
| 74 |
+ system_failure("Ungültiger Hostname");
|
|
| 73 | 75 |
return $input; |
| 74 | 76 |
} |
| 75 | 77 |
|
| 76 | 78 |