Browse code

Bei MediaWiki-Usernames muss immer der erste Buchstabe groƟ geschrieben sein.

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

bernd authored on09/02/2011 10:26:08
Showing1 changed files
... ...
@@ -16,10 +16,12 @@ function validate_data($post)
16 16
 
17 17
   $dbdata = create_webapp_mysqldb('mediawiki', $post['wikiname']);
18 18
 
19
+  $adminuser =  ucfirst(chop($post['adminuser']));
20
+
19 21
   $salt = random_string(8);
20 22
   $salthash = ':B:' . $salt . ':' . md5( $salt . '-' . md5( $post['adminpassword'] ));
21 23
   
22
-  $data = "adminuser={$post['adminuser']}
24
+  $data = "adminuser={$adminuser}
23 25
 adminpassword={$salthash}
24 26
 adminemail={$post['adminemail']}
25 27
 wikiname={$post['wikiname']}