Commit fb9ecddb authored by Brion Vibber's avatar Brion Vibber

Ticket #2649: fix for undefined $base_url in lighttpd code path

The $base_url var is never defined, and the code has actually always been wrong since it was added.
Just removing it seems to work fine :)
parent d3d97974
......@@ -204,7 +204,7 @@ function main()
{
// fake HTTP redirects using lighttpd's 404 redirects
if (strpos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') !== false) {
$_lighty_url = $base_url.$_SERVER['REQUEST_URI'];
$_lighty_url = $_SERVER['REQUEST_URI'];
$_lighty_url = @parse_url($_lighty_url);
if ($_lighty_url['path'] != '/index.php' && $_lighty_url['path'] != '/') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment