for Michael: The thread started at
and is about your patch for CGI.pm issues under SSI from June 2006.
On Wed, Jul 30, 2008 at 10:18:56AM -0700, Kevin Scaldeferri wrote:
> > So here's the real commit, a very early one, between version 2.0.1 and
> > 2.0.2:
> > http://blosxom.cvs.sourceforge.net/blosxom/blosxom2/blosxom.cgi?view=diff&r1=1.10&r2=1.11
> > The comment by Kevin is "fix problem with CGI.pm and SSIs where url()
> > doesn't work as documented".
> > Kevin: Can you remember the details what didn't work, how it should
> > work and why this fixes it?
> I don't remember any details of this issue at this point, except that
> it was a contributed patch from someone else.
Thanks, that was the right hint so I knew where to search for it.
Found the submitter's mail to this list:
And now it gets very interesting. He writes:
| I stumbled over a difference in behaviour between my home machine,
| and my outbound site, which I could nail down to CGI.pm's url()
| From CGI.pm v3.12 onwards, the PATH_INFO is always appended to the
| result of the url() call. Since that breaks calculation of direct
| links, I propose attached patch.
So he had the problem we have now with the old, unpatched version that
CGI.pm added the path_info. If you look further down the thread, he
mentions that the problem seems to occur only in SSI.
I put up his two example scripts online at
You can easily spot the difference although both times the same script
is executed, just the second time called from inside a SSI statement.
His problem is that PATH_INFO was added by default under SSI and not
under CGI. He solved it by always appending the PATH_INFO and then
removing it again. This nowadays doesn't seem to work anymore. In case
of the above scripts running under Apache 2.2 because of there's no
more PATH_INFO in the environment anymore under SSI and therefore his
fix can't remove it anymore manually.
I'll see if I can fix this issue somehow to make it work under both
If so, I would release this change and the changes from a few hours
ago as 2.1.1. Release early, release often. Hope Rhonda and the Debian
release team don't mind, but you probably know that you never should
trust dot zero releases. Not even your own ones. ;-)
Axel Beckert - abe@..., abe@... - http://noone.org/abe/