Browse code

Fehler bei leeren Benutzernamen

Hanno Böck authored on03/03/2017 12:57:02
Showing1 changed files
... ...
@@ -51,7 +51,11 @@ function verify_input_general( $input )
51 51
 
52 52
 function filter_input_username( $input )
53 53
 {
54
-  return preg_replace("/[^[:alnum:]\_\.\+\-]/", "", $input );
54
+  $username=preg_replace("/[^[:alnum:]\_\.\+\-]/", "", $input);
55
+  if ($username === "") {
56
+    system_failure("Leerer Benutzername!");
57
+  }
58
+  return $username;
55 59
 }
56 60
 
57 61
 function verify_input_username( $input )