Changeset 28006

Show
Ignore:
Timestamp:
08.08.2013 17:14:40 (6 years ago)
Author:
sjm84
Message:

Fixing a bug caused when the context and the interface have the same name

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/URLFilter.java

    r27992 r28006  
    200200            else if (url.contains(INTERFACE_PATH)) 
    201201            { 
    202                 String fileURL = url.replace(request.getServletContext().getContextPath(), ""); 
     202                String fileURL = url.replaceFirst(request.getServletContext().getContextPath(), ""); 
    203203                File requestedFile = new File(request.getServletContext().getRealPath(fileURL)); 
    204204                if (!requestedFile.exists())