You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Rogério Meneguelli Gatto <ga...@softwaredesign.com.br> on 2000/11/29 17:30:30 UTC
[CONTRIBUTED PATCH] org.apache.tomcat.util.FileUtil.safePath()
Hello,
org.apache.tomcat.util.FileUtil.safePath() had a bug (at least from my point of
view) that was preventing use of "\\machine\share" paths in context docBases,
yielding a 404 on those contexts.
The patch was obtained with a "diff -u <old> <new>", I don't know if that's ok.
I've made some testing, and the reasons that lead to safePath implementation
in TC32 are still held, I believe (no paths fall outside docBase, case
sensitiveness enforced, Win oddities like "*.jsp." prevented). I haven't
tested on *nix or netware, but the scope of the changes doesn't seem that big
(but feel free to ignore them or apply only on the next bug fix release ;-)
Regards,
--
Rogério Meneguelli Gatto | ICQ# 25775025
Analista de Sistemas Pleno | +55 19 3254-6518 ext 223
Software Design Informática | http://www.softwaredesign.com.br
God is a comic playing to an audience that's afraid to laugh