lighttpd/1.4.22 does not populate _REQUEST['action'] for wp-login.php
|Reported by:||myrond||Owned by:|
lighttpd/1.4.22 does not populate _REQUESTaction? for wp-login.php, this in turn disabled any action in the switch statement breaking the ability to logout.
Symtoms of this bug are: clicking logout in wordpress 2.8 and going to the login page but not really logging out. Clicking logout in wordpress 2.3 and being redirected right back to the /wp-admin page.
adding this code to wp-login.php, fixes the behavior and re-enables all features in wp-login.php.
I don't know the wordpress code but if there is a section which deals with idiosyncrasies of web servers that lighttpd be detected and this code be run to deal with it.
if (strpos($_SERVERSERVER_SOFTWARE?, 'lighttpd') !== false)
$_lighty_url = $base_url.$_SERVERREQUEST_URI?;
$_lighty_url = @parse_url($_lighty_url);
$_SERVERQUERY_STRING? = $_lighty_urlquery?;
foreach ($_lighty_query as $key => $val)
$_GET[$key] = $_REQUEST[$key] = $val;
Change History (20)
- Milestone Unassigned deleted
- Resolution set to invalid
- Status changed from new to closed