uiconfig.php
changeset 64 ee64bb096f56
parent 50 1b4288399b1f
child 71 8663af0e27c7
--- a/uiconfig.php	Tue Dec 23 17:37:51 2008 -0500
+++ b/uiconfig.php	Tue Dec 23 20:20:35 2008 -0500
@@ -85,7 +85,7 @@
     }
     $auth_data = var_export_string($auth_data);
     
-    $new_configpass = ( is_string($_POST['newconfigpass']) && $_POST['newconfigpass'] != '____________________' ) ? sha1($_POST['newconfigpass']) : $GLOBALS['configpass'];
+    $new_configpass = ( isset($_POST['configpass']) && is_string($_POST['newconfigpass']) && $_POST['newconfigpass'] != '____________________' ) ? sha1($_POST['newconfigpass']) : $GLOBALS['configpass'];
     
     $config_file = <<<EOF
 <?php