cvs: pear /HTML_QuickForm QuickForm.php

From: Date: Fri, 31 May 2002 11:34:09 +0000
Subject: cvs: pear /HTML_QuickForm QuickForm.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4317@lists.php.net to get a copy of this message
mansion Fri May 31 07:34:09 2002 EDT Modified files: /pear/HTML_QuickForm QuickForm.php Log: Wrong index in GLOBALS. Index: pear/HTML_QuickForm/QuickForm.php diff -u pear/HTML_QuickForm/QuickForm.php:1.19 pear/HTML_QuickForm/QuickForm.php:1.20 --- pear/HTML_QuickForm/QuickForm.php:1.19 Fri May 31 06:02:10 2002 +++ pear/HTML_QuickForm/QuickForm.php Fri May 31 07:34:08 2002 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: QuickForm.php,v 1.19 2002/05/31 10:02:10 mansion Exp $ +// $Id: QuickForm.php,v 1.20 2002/05/31 11:34:08 mansion Exp $ require_once("PEAR.php"); require_once("HTML/Common.php"); @@ -289,7 +289,7 @@ { HTML_Common::HTML_Common($attributes); $method = (strtoupper($method) == "GET") ? "GET" : "POST"; - $action = ($action == "") ? $GLOBALS["PHP_SELF"] : $action; + $action = ($action == "") ? $GLOBALS['HTTP_SERVER_VARS']['PHP_SELF'] : $action; $this->updateAttributes(array("action"=>$action, "method"=>$method, "name"=>$formName, "target"=>$target)); $this->_registeredTypes = &$GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES']; $this->_submitValues = $GLOBALS["HTTP_" . $method . "_VARS"];

« previous php.pear.cvs (#4317) next »