shuber      2005/09/02 15:13:34 CEST

  Modified files:
    core/src/java/org/jahia/urls ContentServletURL.java 
  Log:
  Fix for JAHIA-334 contributed by Benjamin Papez, thanks.
  http://www.jahia.org/jira/browse/JAHIA-334
  
  Revision  Changes    Path
  1.4       +7 -0      jahia/core/src/java/org/jahia/urls/ContentServletURL.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/core/src/java/org/jahia/urls/ContentServletURL.java.diff?r1=1.3&r2=1.4&f=h
  
  
  
  Index: ContentServletURL.java
  ===================================================================
  RCS file: 
/home/cvs/repository/jahia/core/src/java/org/jahia/urls/ContentServletURL.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ContentServletURL.java    21 Jun 2005 14:12:12 -0000      1.3
  +++ ContentServletURL.java    2 Sep 2005 13:13:33 -0000       1.4
  @@ -133,6 +133,13 @@
           }
           // if we got this far this means we have successfully matched both 
the
           // context and the servlet path.
  +
  +        // SCSE 14.06.2005: check if the URL contains only JavaScript block
  +        if (targetURL.getScheme() != null
  +            && "javascript".equals(targetURL.getScheme().toLowerCase())) {
  +           return false;
  +        }
  +
           /**
            * @todo we can add here checks on the path info to make sure the
            * number of path info parameters is a multiple of two, etc, but for
  

Reply via email to