[#5332] Restrict project name length to 15 chars
Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>
diff --git a/Allura/allura/ext/admin/templates/project_tools.html b/Allura/allura/ext/admin/templates/project_tools.html
index a607cfd..0c8046d 100644
--- a/Allura/allura/ext/admin/templates/project_tools.html
+++ b/Allura/allura/ext/admin/templates/project_tools.html
@@ -64,7 +64,7 @@
</span>
<span class="mount-point-name-rules subproject">
A valid subproject mount point must begin with a letter, contain only letters,
- numbers, and dashes, and be from 3-63 characters in length.
+ numbers, and dashes, and be from 3-15 characters in length.
</span>
</small>
</div>
diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index 691204a..9ddad18 100644
--- a/Allura/allura/lib/helpers.py
+++ b/Allura/allura/lib/helpers.py
@@ -54,7 +54,7 @@
# validates project, subproject, and user names
-re_project_name = re.compile(r'^[a-z][-a-z0-9]{2,62}$')
+re_project_name = re.compile(r'^[a-z][-a-z0-9]{2,14}$')
# validates tool mount point names
re_tool_mount_point = re.compile(r'^[a-z][-a-z0-9]{0,62}$')