Bug #800
closedusing %0 in url.rewrite-once makes lighttpd segfault whenever a url is about to be rewritten
Description
When I try and do something like the following:
url.rewrite-once = ( "^(/css/.*)$" => "/media/%0$1" )
Then lighttpd segfaults. If I replace %0 with something hardcoded, then it works fine.
I'm using lighttpd version 1.4.11-3ubuntu3 on ubuntu dapper amd64. I tried the 32bit version in a chroot and got the same thing. I checked out the latest code and tried to compile it manually, but got a compile error. Then I checked out revision 1116 because it looked like that was a checkin that fixed a problem that I thought might be the same thing and compiled it, but it gave the same error.
Attached, please find my lighttpd configuration, gdb output and valgrind output
-- Le Roux Bodenstein
Files
Updated by Anonymous about 18 years ago
ok.. just changed the following:
url.rewrite-once = ( "^/((files|css|images|js|flash|cache)/.*)$" => "/media/%0/$1", "^(.*)$" => "/main.fcgi$1", )
to:
$HTTP["host"] =~ ".*" { url.rewrite-once = ( "^/((files|css|images|js|flash|cache)/.*)$" => "/media/%0/$1", "^(.*)$" => "/main.fcgi$1", ) }
and now it works. In my opinion it should still not have crashed, though ;)
-- Le Roux Bodenstein
Updated by jan over 17 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed in r1735
Updated by Anonymous almost 17 years ago
Adult Dating With Real People. Free Registration.
-- James
Also available in: Atom