]> source.dussan.org Git - jgit.git/commitdiff
WrappedRequest: Don't use deprecated ServletRequestWrapper#realPath 41/81541/4
authorDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 21 Sep 2016 07:53:14 +0000 (09:53 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 22 Sep 2016 07:46:26 +0000 (09:46 +0200)
Change-Id: I268e66d2299a1a12f7ae44b67a6b947339038245
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java

index 7f8da7c440fc45bc80d13588a16fec4d2b30c04b..b702c074864e5d8c8ba7c59808a7fe663db3f1bb 100644 (file)
@@ -72,7 +72,7 @@ public class WrappedRequest extends HttpServletRequestWrapper {
        @Override
        public String getPathTranslated() {
                final String p = getPathInfo();
-               return p != null ? getRealPath(p) : null;
+               return p != null ? getSession().getServletContext().getRealPath(p) : null;
        }
 
        @Override