-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mindaugas,
On 5/11/2011 9:16 AM, Mindaugas Žakšauskas wrote: > On Tue, May 10, 2011 at 7:31 PM, Christopher Schultz > <ch...@christopherschultz.net> wrote: >> <..> >> What about http://site/test1%28test2/ >> >> Does that give you "/test1)test2/"? > > Closing bracket is %29 but yes, it does. > >> If so, Tomcat is probably following SOP with regard to standards which >> is to be conservative in what you send and liberal in what you accept. > > Which is all good and understandable. But I would like to print <a > href="/test1)test2"> rather than <a href="/test1%29test2"> for better > readability as now I don't know what requires to be encoded and what > not. So, you want to /only/ escape those entities that are /absolutely required/ to be escaped? I'm not sure anyone really cares what URLs look like, do they? And if they do, why not change them so this escaping thing isn't necessary? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3KjxAACgkQ9CaO5/Lv0PBgFACgp07NpN3tRcYrrygztGXfreuO vIgAn3dCeJ1YXPP0bLWwxFKobDhmBaok =pOa2 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org