[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
Wed Feb 17 05:07:43 UTC 2010
#10458: lighttpd/1.4.22 does not populate _REQUEST['action'] for wp-login.php
--------------------------+-------------------------------------------------
Reporter: myrond | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: General | Version: 2.8
Severity: normal | Resolution:
Keywords: close |
--------------------------+-------------------------------------------------
Comment(by danielsummers):
I've run into this in a different context, but found this with my
searches. I do have several WordPress blogs. I'm looking to move to
lighttpd to ease the burden on my server.
That being said, this is how I implemented it...
{{{
if (strpos($_SERVER["SERVER_SOFTWARE"], "lighttpd") !==
false) {
parse_str(parse_url($_SERVER["REQUEST_URI"],
PHP_URL_QUERY), $_GET);
}
}}}
Passing the PHP_URL_QUERY parameter to parse_url only returns the query
string portion; parse_str can put the items straight into $_GET, so you
don't need the interim array and for loop.
(Please correct me if I'm wrong; I'm just ecstatic to have found the
solution. In lighttpd's documentation, WAY at the bottom, it shows how to
pass the query string; however, I've implemented the above in my web app
so I can use the syntax I'm used to.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10458#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list