X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=6f011e7e5bba37bcf7a0dce17765a75625c9ca6d;hb=882b6862a39a44a2cd2d2dc7dac9a794f2183d7d;hp=b060a3d52ac9ec9c60214702bc2a2c1b63dd63a8;hpb=8212df3e1a132e13d2a7aed9c4f0cd1212ff44ba;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index b060a3d52a..6f011e7e5b 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'] != '/') { @@ -272,11 +272,7 @@ function main() return; } - // Note the order here: arguments from the URL mapper will - // override request params that have been sent. This ensures - // that for instance an action parameter can't be overridden - // with an arbitrary action class. - $args = array_merge($_REQUEST, $args); + $args = array_merge($args, $_REQUEST); Event::handle('ArgsInitialize', array(&$args));