Adrien Plisson
aplisson-modpython at stochastique.net
Thu Jun 3 19:06:46 EDT 2004
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). -- rien
|