...
|
...
|
@@ -75,13 +75,13 @@ function filter_input_hostname($input, $wildcard=false)
|
75
|
75
|
// FIXME: Eine "filter"-Funktion sollte keinen system_failure verursachen sondern einfach einen bereinigten String liefern.
|
76
|
76
|
|
77
|
77
|
DEBUG('filter_input_hostname("'.$input.'", $wildcard='.$wildcard.')');
|
78
|
|
- $input = str_replace(array('Ä', 'Ö', 'Ü'), array('ä', 'ö', 'ü'), strtolower($input));
|
|
78
|
+ $input = strtolower($input);
|
79
|
79
|
$input = rtrim($input, "\t\n\r\x00 .");
|
80
|
80
|
$input = ltrim($input, "\t\n\r\x00 .");
|
81
|
81
|
if (preg_replace("/[^.]_/", "", $input) != $input) {
|
82
|
82
|
system_failure("Der Unterstrich ist nur als erstes Zeichen eines Hostnames erlaubt.");
|
83
|
83
|
}
|
84
|
|
- if (preg_replace("/[^[:alnum:]äöü_*\.\-]/", "", $input) != $input) {
|
|
84
|
+ if (preg_replace("/[^[:alnum:]_*\.\-]/u", "", $input) != $input) {
|
85
|
85
|
system_failure("Ihre Daten enthielten ungültige Zeichen!");
|
86
|
86
|
}
|
87
|
87
|
if (preg_match("/^.+\*/", $input)) {
|