[imp] Attachments Crash

Henry Blackman h.blackman@chester.ac.uk
Fri, 11 Jan 2002 18:21:41 +0000


Quoting Jan Schneider <jan@horde.org>:

> Zitat von Henry Blackman <h.blackman@chester.ac.uk>:
> 
> > Hello.
> > 
> > Something I've noticed in IMP 3 (from tarball).  When I click to download
> > an
> > attachment; if the filename has spaces in it, the browser (IE 6 in my
> > case)
> > actually hangs.  IE 5.5 works just fine, but that's because of the
> > different
> > Content-Disposition header.
> > 
> > Has anyone come across this, or solved the problem.  I've tried adding
> > quotes to the Content-Disposition header around the filename, but then
> > IE
> > gives the file the name "view" instead of what's sent - but it doesn't
> > crash
> > the browser.  Any ideas?  I did wonder if replacing a space with "%20"
> > would
> > do the job, but I haven't tested that.
> 
> I experienced those crashes sometimes but couldn't find a pattern when it 
> happens. Good hint, I'll try this out.
> 
> Jan.

Just out of interest.  Hotmail (spit) actually removed the spaces in filenames 
before sending it to the browser when attachments are "downloaded".  That 
might well be the best solution - although changing filenames isn't exactly a 
solution I know.

Cheers,
Henry