Thank you. Update solved the issue!

Jan

Am Montag, den 16.03.2009, 23:05 +0100 schrieb David Zülke:
> I guess it's 1.4.20, which is completely broken in that regard:
> 
> http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2362
> 
> Update to 1.4.21 and all will be fine.
> 
> - David
> 
> 
> On 16.03.2009, at 23:02, David Zülke wrote:
> 
> > 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 as
> >> the 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?test
> >>
> >> Any ideas how to fix either my lighthttpd configuration for that,  
> >> or an
> >> agavi internal fix?
> >>
> >> Jan
> >>
> >> [1] http://trac.agavi.org/ticket/1033
> >>
> >> PS: It happens really just in case of using rewrite rules, without  
> >> them
> >> everything is fine!
> >>
> >> -- 
> >>
> >> http://dracoblue.net
> >>
> >>
> >> _______________________________________________
> >> Agavi Dev Mailing List
> >> [email protected]
> >> http://lists.agavi.org/mailman/listinfo/dev
> >>
> >
> > _______________________________________________
> > Agavi Dev Mailing List
> > [email protected]
> > http://lists.agavi.org/mailman/listinfo/dev
> 
> _______________________________________________
> Agavi Dev Mailing List
> [email protected]
> http://lists.agavi.org/mailman/listinfo/dev


_______________________________________________
Agavi Dev Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/dev

Reply via email to