Bug #19216 [Opn->Csd]: Wrong http host used by HTML_QuickForm2_Controller_Action_Jump

From: Date: Thu, 23 Feb 2012 13:30:19 +0000
Subject: Bug #19216 [Opn->Csd]: Wrong http host used by HTML_QuickForm2_Controller_Action_Jump
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8312@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19216&edit=1 ID: 19216 Updated by: borz_off@cs.msu.su Reported By: peacech at gmail dot com Summary: Wrong http host used by HTML_QuickForm2_Controller_Action_Jump -Status: Open +Status: Closed Type: Bug Package: HTML_QuickForm2 Operating System: Linux Package Version: SVN PHP Version: 5.3.9 -Assigned To: +Assigned To: avb Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: avb This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2012-01-11 07:47:26] char101 Description: ------------ Hi, HTML_QuickForm2_Controller_Action_Jump should use $_SERVER['HTTP_HOST'] and fallback to $_SERVER['SERVER_NAME'] instead of using $_SERVER['SERVER_NAME'] because the two can be different and the user's cookie works only for $_SERVER['HTTP_HOST']. Here is an example configuration nginx is configured to handle .domain.com client requests server1.domain.com SERVER_NAME is set to domain.com HTTP_HOST is set to server1.domain.com So the correct host to use will be $_SERVER['HTTP_HOST']. Thanks. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19216&edit=1

« previous php.pear.bugs (#8312) next »