Browse code

Erst filtern, dann schauen ob Felder leer sind

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@508 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on16/06/2007 14:48:23
Showing1 changed files
... ...
@@ -17,9 +17,9 @@ DEBUG("GET: ".htmlentities(print_r($_GET, true))." / POST: ".htmlentities(print_
17 17
 if ($_GET['action'] == 'new')
18 18
 {
19 19
   check_form_token('jabber_new_account');
20
-  if ($_POST['local'] == '' ||
20
+  if (filter_input_username($_POST['local']) == '' ||
21 21
       $_POST['domain'] == '' ||
22
-      $_POST['password'] == '')
22
+      filter_shell($_POST['password']) == '')
23 23
   {
24 24
     input_error('Sie müssen alle Felder ausfüllen!');
25 25
   }