On Thu, Dec 28, 2000 at 04:14:28PM +0100, Jens-Uwe Mager wrote:
> I have no idea how people manage to do it, but appearently they do
> produce URL's with extra path info elements at the end of the URL that
> messes up all my relative image URL references. I use the suffix .phtml
> for my embperl pages, and I am seeing URL's like /path/to/file.phtml/
> with an additional '/'. This causes the browser to generate all the
> wrong image path references. Is there some easy way to fix this?

Oops, talking to myself today. But I added the following trivial
PerlFixupHandler and now .phtml pages behave more like .html pages:

#!/usr/local/bin/perl -w
# $Id: FixPathInfo.pm,v 1.1 2000/12/29 17:34:23 jum Exp $
# This is an unpublished work copyright (c) 2000 HELIOS Software GmbH
# 30827 Garbsen, Germany

package FixPathInfo;

use strict;
use Apache::Constants qw(:common);

use vars qw($VERSION);
$VERSION = (qw$Revision: 1.1 $ )[-1];

sub handler {
        my $r = shift;
        return NOT_FOUND if $r->path_info;
        return OK;
}

1;

-- 
Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone:          +49 5131 709320
FAX:            +49 5131 709325
Internet:       [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to