Fix for DS-957 : themepath override regex wrong (XMLUI)

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6496 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Tim Donohue
2011-07-19 15:58:10 +00:00
parent bc6b9af830
commit aa34719859

View File

@@ -72,7 +72,7 @@ public class ThemeMatcher extends AbstractLogEnabled implements Matcher {
// Allow: allow all letters and numbers plus periods (but not consecutive),
// dashes, underscores, and forward slashes
if (!themePathOverride.matches("^[a-zA-V0-9][a-zA-Z0-9/_\\-]*/?$")) {
if (!themePathOverride.matches("^[a-zA-Z0-9][a-zA-Z0-9/_\\-]*/?$")) {
throw new IllegalArgumentException("The user specified theme path, \""+themePathOverride+"\", may be " +
"an exploit attempt. To use this feature please limit your theme paths to only letters " +