Changeset 28006


Ignore:
Timestamp:
2013-08-08T17:14:40+12:00 (11 years ago)
Author:
sjm84
Message:

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

File:
1 edited

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())
Note: See TracChangeset for help on using the changeset viewer.