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

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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 34 - 28 = ?

 
 [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 .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.

Comments

 [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 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.