Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.3.1

Bug #19216 Wrong http host used by HTML_QuickForm2_Controller_Action_Jump
Submitted: 2012-01-11 12:47 UTC
From: char101 Assigned: avb
Status: Closed Package: HTML_QuickForm2 (version SVN)
PHP Version: 5.3.9 OS: Linux
Roadmaps: (Not assigned)    

 [2012-01-11 12:47 UTC] char101 (Charles Gunawan)
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 client requests SERVER_NAME is set to HTTP_HOST is set to So the correct host to use will be $_SERVER['HTTP_HOST']. Thanks.


 [2012-02-23 18:30 UTC] avb (Alexey Borzov)
-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 by the end of next Sunday (CET). If this was a problem with the 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.