]> WPIA git - gigi.git/blobdiff - lib/jetty/org/eclipse/jetty/server/handler/AllowSymLinkAliasChecker.java
updating jetty to jetty-9.2.16.v2016040
[gigi.git] / lib / jetty / org / eclipse / jetty / server / handler / AllowSymLinkAliasChecker.java
index c3d8b5932d16665e70c8011c55b0da1c54750946..0df51cb8babb14aa6575f13d504486e89bb1f53d 100644 (file)
@@ -1,6 +1,6 @@
 //
 //  ========================================================================
-//  Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
+//  Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
 //  ------------------------------------------------------------------------
 //  All rights reserved. This program and the accompanying materials
 //  are made available under the terms of the Eclipse Public License v1.0
@@ -56,7 +56,8 @@ public class AllowSymLinkAliasChecker implements AliasCheck
                 URI real = file.toPath().toRealPath().toUri();
                 if (real.equals(resource.getAlias()))
                 {
-                    LOG.debug("Allow symlink {} --> {}",resource,real);
+                    if (LOG.isDebugEnabled())
+                        LOG.debug("Allow symlink {} --> {}",resource,real);
                     return true;
                 }
             }
@@ -79,7 +80,8 @@ public class AllowSymLinkAliasChecker implements AliasCheck
                 }
                 if (resource.getAlias().equals(d.toURI()))
                 {
-                    LOG.debug("Allow symlink {} --> {}",resource,d);
+                    if (LOG.isDebugEnabled())
+                        LOG.debug("Allow symlink {} --> {}",resource,d);
                     return true;
                 }
             }