[mod_python] uploaded file names

Terry MacDonald terry.macdonald at dsl.pipex.com
Fri Jun 4 01:54:59 EDT 2004


Using IE is bad enough but if you have a Mac and you are using IE then
you deserve to have sites not work for you!

 ;3)


 Plisson wrote:
> Daniel J. Popowich wrote:
>  > Nick writes:
>  >
>  >>Daniel J. Popowich wrote:
>  >>
>  >>>My solution, which I fear may be braindead, is to do this to all
>  >>>incoming filenames:
>  >>>
>  >>>  filename = os.path.basename(filename.replace('\\', '/'))
>  >>
>  >>You may want to test the user agent first for IE before replacing the \
>  >>wholesale
>  >
>  > Good point.
> 
> I don't think so...
> 
> IE does not only ship with windows but may also be installed on Macintosh
> systems. The macintosh does not use '\' as a path separator (it uses ':' if I
> remember correctly).
-- 
Terry
Registered Linux User # 311806
www.taumu.com




More information about the Mod_python mailing list