[Xitami] Alias Directories & File Names
Ewen McNeill
xitami@lists.xitami.org
Mon, 10 Sep 2001 22:51:17 +1200
In message <CMEGIPIFEBJBCIKDJKNDAENECDAA.wnickel1@home.com>, "Wally Nickel" writes:
>The only (minor) problem, actually a bit of a nuisance relates to the use of
>ALIAS directory where DIRECTORY lists are enabled so that the downloadable
>files are listed. The ALIAS lists and ALIAS directories portion works well,
>but whenever a file gets downloaded, the extension is either duplicated
>(i.e. "song.mp3" becomes "song.mp3.mp3") or an additional character is added
>to the extension (i.e. "file.exe" becomes "file.exe(1)" ).
The extra extension tends to happen if you already have the file
downloaded to that directory; at least one common webbrowser handles this
situation by appending "(1)" to the filename.
The double extension issue is more puzzling; IIRC this used to happen
with Xitami 2.5b5 (it may still happen there), due to an extremely
conservative test for which characters don't need to be escaped in the
filename, resulting in the filename being escaped, and another extension
added by the webbrowser. (If you think this is hitting you, in 2.5b5, try
substituting "name" for "nameurl" in httpdir.gsl and restarting.)
Off hand I can't think of anything in Xitami 2.4d9 which would cause
this effect, except possibly if the same code that causes the 2.5b5
effect is also in 2.4d9.
Does anyone else see this extension doubling in 2.4d9?
Ewen
--
Ewen McNeill, Technical Consultant, iMatix Corporation www.imatix.com