tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ward <gward-tom...@python.net>
Subject Re: Tomcat 4.1.29 - Special chars in a file name
Date Tue, 31 Aug 2004 14:32:10 GMT
On 31 August 2004, Surendra Kumar said:
> Hi
>    I am using Tomcat 4.1.29 + Apache 1.3.31.  In one of my webapp i have a file named
"test+.gif"

Probably a URL encoding problem -- if a web page includes

  <a href="test+.gif">

then the browser will ask for "test .gif", because "test+.gif" is one of
the ways to encode "test .gif" so it's a legal URL.  (The other is
"test%20.gif".)

Whatever code is generating 

  <a href="test+.gif">

is wrong -- it should be

  <a href="test%2B.gif">

which the browser will decode to "test+.gif".

        Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message