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 :)
This commit is contained in:
Brion Vibber 2011-01-04 12:04:11 -08:00
parent d3d9797496
commit fb9ecddbf1
1 changed files with 1 additions and 1 deletions

View File

@ -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'] != '/') {