Bernd Wurst commited on 2017-02-10 17:09:35
Zeige 1 geänderte Dateien mit 3 Einfügungen und 0 Löschungen.
| ... | ... |
@@ -72,6 +72,9 @@ function filter_input_hostname( $input, $wildcard=false ) |
| 72 | 72 |
$input = str_replace(array('Ä', 'Ö', 'Ü'), array('ä', 'ö', 'ü'), strtolower($input));
|
| 73 | 73 |
$input = rtrim($input, "\t\n\r\x00 ."); |
| 74 | 74 |
$input = ltrim($input, "\t\n\r\x00 ."); |
| 75 |
+ if (preg_replace("/[^.]_/", "", $input) != $input) {
|
|
| 76 |
+ system_failure("Der Unterstrich ist nur als erstes Zeichen eines Hostnames erlaubt.");
|
|
| 77 |
+ } |
|
| 75 | 78 |
if (preg_replace("/[^[:alnum:]äöü_*\.\-]/", "", $input ) != $input)
|
| 76 | 79 |
system_failure("Ihre Daten enthielten ungültige Zeichen!");
|
| 77 | 80 |
if (preg_match("/^.+\*/", $input ))
|
| 78 | 81 |