Browse code

Fehlermeldung, wenn ungültige Shell gewählt wird

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

bernd authored on19/04/2010 14:20:12
Showing1 changed files
... ...
@@ -87,6 +87,9 @@ elseif ($_GET['action'] == 'edit')
87 87
   $shells = available_shells();
88 88
   if (isset($shells[$_POST['shell']]))
89 89
     $account['shell'] = $_POST['shell'];
90
+  else
91
+    if (isset($_POST['shell']) && $_POST['shell'] != '')
92
+      system_failure('Ungültige Shell');
90 93
 
91 94
   set_account_details($account);
92 95
   $target = 'accounts';