mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
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:
@@ -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 " +
|
||||
|
Reference in New Issue
Block a user