SF.net SVN: postfixadmin: [224] trunk/create-domain.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2007-11-14 21:34:00
|
Revision: 224 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=224&view=rev Author: GingerDog Date: 2007-11-14 13:34:04 -0800 (Wed, 14 Nov 2007) Log Message: ----------- create-domain.php: fix for bug 1831720 Modified Paths: -------------- trunk/create-domain.php Modified: trunk/create-domain.php =================================================================== --- trunk/create-domain.php 2007-11-14 21:19:10 UTC (rev 223) +++ trunk/create-domain.php 2007-11-14 21:34:04 UTC (rev 224) @@ -52,10 +52,11 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { if (isset ($_POST['fDomain'])) $fDomain = escape_string ($_POST['fDomain']); - foreach(array('fDescription' => '', 'fAliases' => '0', 'fMailboxes' => '0', - 'fMaxquota' => '0', 'fTransport' => 'virtual', - 'fDefaultaliases' => '0', 'fBackupmx' => '0') as $key => $default) { - if(isset($_POST[$key]) && !empty($POST[$key])) { + $form_fields = array('fDescription' => '', 'fAliases' => '0', 'fMailboxes' => '0', + 'fMaxquota' => '0', 'fTransport' => 'virtual', 'fDefaultaliases' => '0', + 'fBackupmx' => '0'); + foreach($form_fields as $key => $default) { + if(isset($_POST[$key]) && (!empty($_POST[$key]))) { $$key = escape_string($_POST[$key]); } else { @@ -63,6 +64,7 @@ } } + if (empty ($fDomain) or domain_exist ($fDomain) or !check_domain ($fDomain)) { $error = 1; @@ -77,7 +79,7 @@ if (domain_exist ($fDomain)) $pAdminCreate_domain_domain_text = $PALANG['pAdminCreate_domain_domain_text_error']; if (empty ($fDomain) or !check_domain ($fDomain)) $pAdminCreate_domain_domain_text = $PALANG['pAdminCreate_domain_domain_text_error2']; } - + if ($error != 1) { $tAliases = $CONF['aliases']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |