bernd commited on 2009-12-08 15:22:13
Zeige 1 geänderte Dateien mit 5 Einfügungen und 5 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1530 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -56,7 +56,7 @@ function verify_input_general( $input ) |
56 | 56 |
|
57 | 57 |
function filter_input_username( $input ) |
58 | 58 |
{ |
59 |
- return ereg_replace("[^[:alnum:]\_\.\+\-]", "", $input ); |
|
59 |
+ return preg_replace("/[^[:alnum:]\_\.\+\-]/", "", $input ); |
|
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
function verify_input_username( $input ) |
... | ... |
@@ -76,9 +76,9 @@ function filter_input_hostname( $input, $wildcard=false ) |
76 | 76 |
$input = str_replace(array('Ä', 'Ö', 'Ü'), array('ä', 'ö', 'ü'), strtolower($input)); |
77 | 77 |
$input = rtrim($input, "\t\n\r\x00 ."); |
78 | 78 |
$input = ltrim($input, "\t\n\r\x00 ."); |
79 |
- if (ereg_replace("[^[:alnum:]äöü*\.\-]", "", $input ) != $input) |
|
79 |
+ if (preg_replace("/[^[:alnum:]äöü*\.\-]/", "", $input ) != $input) |
|
80 | 80 |
system_failure("Ihre Daten enthielten ungültige Zeichen!"); |
81 |
- if (! $wildcard && ereg_replace("\*", "", $input ) != $input) |
|
81 |
+ if (! $wildcard && preg_replace("/\*/", "", $input ) != $input) |
|
82 | 82 |
system_failure("Ihre Daten enthielten ungültige Zeichen (Keine Wildcards erlaubt)!"); |
83 | 83 |
if (strstr($input, '..')) |
84 | 84 |
system_failure("Ungültiger Hostname"); |
... | ... |
@@ -111,14 +111,14 @@ function verify_input_ipv6( $input ) |
111 | 111 |
|
112 | 112 |
function filter_quotes( $input ) |
113 | 113 |
{ |
114 |
- return ereg_replace('["\'`]', '', $input ); |
|
114 |
+ return preg_replace('/["\'`]/', '', $input ); |
|
115 | 115 |
} |
116 | 116 |
|
117 | 117 |
|
118 | 118 |
|
119 | 119 |
function filter_shell( $input ) |
120 | 120 |
{ |
121 |
- return ereg_replace('[^-[:alnum:]\_\.\+ßäöüÄÖÜ/%§=]', '', $input ); |
|
121 |
+ return preg_replace('/[^-[:alnum:]\_\.\+ßäöüÄÖÜ/%§=]/', '', $input ); |
|
122 | 122 |
} |
123 | 123 |
|
124 | 124 |
function verify_shell( $input ) |
125 | 125 |