Changeset 26538 for main


Ignore:
Timestamp:
11/28/12 12:36:31 (8 years ago)
Author:
sjm84
Message:

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

File:
1 edited

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