FS#50118 - [lighttpd] Headers REQUEST_URI and REDIRECT_URI confused
Attached to Project:
Arch Linux
Opened by Oleg Nagornij (corner) - Thursday, 21 July 2016, 08:45 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 25 December 2017, 14:05 GMT
Opened by Oleg Nagornij (corner) - Thursday, 21 July 2016, 08:45 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 25 December 2017, 14:05 GMT
|
Details
Description:
Lighttpd in module mod-rewrite headers REQUEST_URI and REDIRECT_URI confused between versions 1.40 and 1.39 Additional info: * package version(s) * config and/or log files etc. lighttpd 1.4.40-1 config : url.rewrite-once = ( "^(/assets.*)$" => "$1", "^(/partials.*)$" => "$1", "^/([^.?]*)\?(.*)$" => "/index.php?_url=/$1&$2", "^/([^.?]*)$" => "/index.php?_url=/$1" ) Steps to reproduce: Just headers dump in PHP echo '<pre>'; echo 'REQUEST_URI : '; var_dump($_SERVER['REQUEST_URI']); echo 'REDIRECT_URI : '; var_dump($_SERVER['REDIRECT_URI']); On version 1.39 we have response REQUEST_URI : string(1) "/" REDIRECT_URI : string(17) "/index.php?_url=/" And on version 1.40 REQUEST_URI : string(17) "/index.php?_url=/" REDIRECT_URI : string(1) "/" Result of query to internal php server curl http://desktop:8000 REQUEST_URI : string(1) "/" REDIRECT_URI : <pre><span style='color: #ff0000'><br /> <b>Notice</b>: Undefined index: REDIRECT_URI in <b>/home/olegn/Lukas/projects/bridge/public/index.php</b> on line <b>25</b><br /> </span></pre>NULL |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Monday, 25 December 2017, 14:05 GMT
Reason for closing: Fixed
Additional comments about closing: lighttpd 1.4.41-1
Monday, 25 December 2017, 14:05 GMT
Reason for closing: Fixed
Additional comments about closing: lighttpd 1.4.41-1
https://redmine.lighttpd.net/issues/2738