What's your exact lighttpd version?
On 16.03.2009, at 22:39, Jan Schütze wrote:
Hello, like suggested at ticket #1033 [1] I have a lighty-rewrite rule for my new agavitest folder. url.rewrite-once = ("^/agavitest/pub/([^?]*)(?:\?(.*))?$" => "/agavitest/pub/index.php?/ $1&$2")Everything works fine, but agavi detects the base href wrong as soon asthe url contains an encoded "?" (urlencoded: %3F). I did some investigation into the issue and noticed that agavi uses _SERVER[QUERY_STRING] to detect the location and found out, that this rewrite rule makes agavi's base dir detection go crazy ;). To understand the issue here are 2 nearly equal requests: /agavitest/pub/test%3Ftest?test [QUERY_STRING] => /test&test?test /agavitest/pub/test?test?test [QUERY_STRING] => /test&test?test As you can see, the result is the same. I guess this is, because Lighttpd does match the "?" in the url-rewrite-rule, even though it should be urlencoded! The REQUEST_URI parameter is correct, though: /agavitest/pub/test%3Ftest?test [REQUEST_URI] => /agavitest/pub/test%3Ftest?test /agavitest/pub/test?test?test [REQUEST_URI] => /agavitest/pub/test?test?testAny ideas how to fix either my lighthttpd configuration for that, or anagavi internal fix? Jan [1] http://trac.agavi.org/ticket/1033PS: It happens really just in case of using rewrite rules, without themeverything is fine! -- http://dracoblue.net _______________________________________________ Agavi Dev Mailing List [email protected] http://lists.agavi.org/mailman/listinfo/dev
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Agavi Dev Mailing List [email protected] http://lists.agavi.org/mailman/listinfo/dev
