mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
125601 jvonka: RA-779: Sites API - create site - additional tests (site description & also max lengths for id, title & description) - fix site id validation (repeating valid chars) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127555 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -948,7 +948,7 @@ public class SitesImpl implements Sites
|
||||
}
|
||||
else
|
||||
{
|
||||
if (! siteId.matches("[^"+SITE_ID_VALID_CHARS_PARTIAL_REGEX+"]"))
|
||||
if (! siteId.matches("^["+SITE_ID_VALID_CHARS_PARTIAL_REGEX+"]+"))
|
||||
{
|
||||
throw new InvalidArgumentException("Invalid site id - should consist of alphanumeric/dash characters");
|
||||
}
|
||||
|
Reference in New Issue
Block a user