Changeset 26538 for main

Show
Ignore:
Timestamp:
28.11.2012 12:36:31 (7 years ago)
Author:
sjm84
Message:

Added the usersdb directory to the list of places that shouldn't be accessible

Files:
1 modified

Legend:

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

    r26232 r26538  
    1919import org.greenstone.gsdl3.util.GSXML; 
    2020import org.greenstone.gsdl3.util.UserContext; 
    21 import org.greenstone.gsdl3.action.DocumentAction; 
    2221import org.w3c.dom.Document; 
    2322import org.w3c.dom.Element; 
     
    3130    //Restricted URLs 
    3231    protected static final String SITECONFIG_URL = "sites/[^/]+/siteConfig.xml"; 
     32    protected static final String USERS_DB_URL = "sites/[^/]+/etc/usersDB/.*"; 
    3333    protected static final ArrayList<String> _restrictedURLs; 
    3434    static 
     
    3636        ArrayList<String> restrictedURLs = new ArrayList<String>(); 
    3737        restrictedURLs.add(SITECONFIG_URL); 
     38        restrictedURLs.add(USERS_DB_URL); 
    3839        _restrictedURLs = restrictedURLs; 
    3940    }