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