Message -
From: Lyle Brooks [EMAIL PROTECTED]
To: Tim Noll [EMAIL PROTECTED]
Cc: Lyle Brooks [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, February 05, 2002 5:54 PM
Subject: Re: image corruption
Ok, a couple of things...
1) You want to move the $r-send_http_header; call up before
I'm attempting to use mod_perl and Template Toolkit to serve up
templates. However, I'm having a problem with the images in those
templates: They're passing through the content handler, and thus getting
corrupted.
My first thought was to return DECLINED from the content handler if the
request is
To: [EMAIL PROTECTED]
cc:
Subject:image corruption
I'm attempting to use mod_perl and Template Toolkit to serve up
templates. However, I'm having a problem with the images in those
templates: They're passing through the content handler, and thus getting
corrupted
When I try this example, I find that this line
my $file = $r-path_info;
will set $file to /index.html when I request the URL /tt/index.html
which leads to an error message that says,
reason: file error - /index.html: absolute paths are not allowed (set ABSOLUTE option)
You may want to clip
Another obvious option would be to put your images in a different directory,
e.g. /images rather than /tt/images.
Or, add another Location directive for /tt/images, and set the handler to
the default handler.
-Dave
: Tuesday, February 05, 2002 4:42 PM
Subject: Re: image corruption
When I try this example, I find that this line
my $file = $r-path_info;
will set $file to /index.html when I request the URL /tt/index.html
which leads to an error message that says,
reason: file error - /index.html
[EMAIL PROTECTED]
To: Tim Noll [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, February 05, 2002 4:42 PM
Subject: Re: image corruption
When I try this example, I find that this line
my $file = $r-path_info;
will set $file to /index.html when I request the URL /tt/index.html