Bug #800
using %0 in url.rewrite-once makes lighttpd segfault whenever a url is about to be rewritten
| Status: | Fixed | Start: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | - | |||
| Missing in 1.5.x: |
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
Associated revisions
- fixed crash on url.redirect and url.rewrite if %0 is used in a
global context (fixes #800)
History
Updated by Anonymous about 4 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 3 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed in r1735
Updated by Anonymous over 2 years ago
Adult Dating With Real People. Free Registration.
-- James
Also available in: Atom