[Xitami] BUG - uppercase subdirs of an Alias - potenial NULL pointer assignemnt

Francis Turner xitami@lists.xitami.org
Wed, 19 Dec 2001 18:56:34 +0100


Francis Turner wrote:

> Just found a lovely bug.
>
> I have (for test purposes!) within my defaults.cfg an alias line
> usrlocal = "/usr/local"
>
> (Xitami is installed and runing in /usr/local/xitami-25b5)
>
> I also have a subdirectory from /usr/local/xitami-25b5/webpages called 
> UPPERCASE
>
> http://computer/UPPERCASE/ works and returns the directory contents
> http://computer/usrlocal/xitami-25b5/webpages/ works and gives the 
> home page
> http://computer/usrlocal/xitami-25b5/webpages/UPPERCASE/ gives a 404
>
Forgot to mention the workaround : Add a link by "ln -s path alias" in 
the webpages directory.

Note this could lead to infitte recursion down directory trees if not 
careful and it does so in the toy example I just used above

Francis

-- 
...if the US Government were ever to get really serious about Internet 
security, the top players in Microsoft's management hierarchy would find 
themselves handcuffed, blindfolded, led onto a tarmac within some obscure 
Air Force base, and shot.
-- Thomas C Greene (http://www.theregister.co.uk/content/55/23223.html)