From fb9ecddbf16ad3b33466732334aaafdd92719c30 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 4 Jan 2011 12:04:11 -0800 Subject: [PATCH] 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 :) --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 9501e2275d..b2cf2d4a9d 100644 --- a/index.php +++ b/index.php @@ -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'] != '/') {