SF.net SVN: postfixadmin:[542] trunk/create-domain.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2009-01-23 22:22:34
|
Revision: 542 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=542&view=rev Author: GingerDog Date: 2009-01-23 21:37:02 +0000 (Fri, 23 Jan 2009) Log Message: ----------- do not use empty as it thinks the string 0 is empty... Modified Paths: -------------- trunk/create-domain.php Modified: trunk/create-domain.php =================================================================== --- trunk/create-domain.php 2009-01-21 13:47:04 UTC (rev 541) +++ trunk/create-domain.php 2009-01-23 21:37:02 UTC (rev 542) @@ -53,7 +53,7 @@ ); foreach($form_fields as $key => $default) { - if(isset($_POST[$key]) && (!empty($_POST[$key]))) { + if(isset($_POST[$key]) && (strlen($_POST[$key]) > 0)) { $$key = escape_string($_POST[$key]); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |