[wp-trac] [WordPress Trac] #10458: lighttpd/1.4.22 does not populate _REQUEST['action'] for wp-login.php

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 15 09:10:44 UTC 2010


#10458: lighttpd/1.4.22 does not populate _REQUEST['action'] for wp-login.php
--------------------------+-------------------------------------------------
 Reporter:  myrond        |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:  2.8    
 Severity:  normal        |   Resolution:  invalid
 Keywords:  close         |  
--------------------------+-------------------------------------------------

Comment(by myrond):

 I never said it was a bug in wordpress, the bug is in PHP/lighttpd, but
 there is a simple fix to work around it in wordpress:

 if (strpos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') !== false)
 {
 $_lighty_url = $base_url.$_SERVER['REQUEST_URI'];
 $_lighty_url = @parse_url($_lighty_url);
 $_SERVER['QUERY_STRING'] = $_lighty_url['query'];
 parse_str($_lighty_url['query'], $_lighty_query);
 foreach ($_lighty_query as $key => $val)
 $_GET[$key] = $_REQUEST[$key] = $val;
 }

 apply that to wordpress and it fixes the problem.  I was hoping more than
 anything if other people run into this problem google will pick it up and
 they will be redirected to a workaround which can be applied to wordpress.

 Hopefully someday lighttpd/php will be patched and it will work.  If this
 was applied to wordpress core that is fine too.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10458#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list