appdb/. account.php

WineHQ wineowner at wine.codeweavers.com
Thu Jun 15 21:04:34 CDT 2006


ChangeSet ID:	25771
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/06/15 21:04:33

Modified files:
	.              : account.php 

Log message:
	Tony Lambregts <tony.lambregts at gmail.com>
	Prevent users from creating accounts with a blank username

Patch: http://cvs.winehq.org/patch.py?id=25771

Old revision  New revision  Changes     Path
 1.16          1.17          +2 -1       appdb/account.php

Index: appdb/account.php
diff -u -p appdb/account.php:1.16 appdb/account.php:1.17
--- appdb/account.php:1.16	16 Jun 2006  2: 4:33 -0000
+++ appdb/account.php	16 Jun 2006  2: 4:33 -0000
@@ -93,7 +93,8 @@ function cmd_do_new()
         retry("new", "Passwords don't match");
         return;
     }
-    if(!isset($_POST['ext_realname']))
+    $_POST['ext_realname']=trim($_POST['ext_realname']);
+    if(empty($_POST['ext_realname']))
     {
         retry("new", "You don't have a Real name?");
         return;



More information about the wine-cvs mailing list