[Xitami] [Alias] and [Filter] do conflict?
Pieter Hintjens
xitami@lists.xitami.org
Thu, 12 May 2005 17:38:03 +0200
On 12/05/2005 04:52 pm, Maurilio Longo wrote:
> So, the problem seems not to be in the code that spawns the .php
> interpreter but in the code that creates the cgi environment before
> spawning the cgi executable.
Yes, this makes sense. I vaguely remember this being reported as a problem in
the past.
I've taken a look. I don't have time to set-up a test environment so this is
speculative, but the problem appears to be in smthttpl.c where it formats the
path_translated variable, wrongly sticking the rootdir before the path name.
Try this patch (smthttpl.c, line 2656):
if (filter)
path_translated = xstrcpy (NULL, p_http-> url, NULL);
else
path_translated = xstrcpy (NULL, full_rootdir, p_http-> path_info,
NULL);
No guarantee this works but if it does I'll patch the source code.
Regards,
Pieter Hintjens