You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/04/29 16:33:28 UTC
git commit: [#5332] Restrict project name length to 15 chars
Updated Branches:
refs/heads/tv/5332 ee90445bb -> 856ae7887
[#5332] Restrict project name length to 15 chars
Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/856ae788
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/856ae788
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/856ae788
Branch: refs/heads/tv/5332
Commit: 856ae78874b92b3d3e99583a5f618c818fce04ad
Parents: ee90445
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Mon Apr 29 14:33:13 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Mon Apr 29 14:33:13 2013 +0000
----------------------------------------------------------------------
.../allura/ext/admin/templates/project_tools.html | 2 +-
Allura/allura/lib/helpers.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/856ae788/Allura/allura/ext/admin/templates/project_tools.html
----------------------------------------------------------------------
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>
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/856ae788/Allura/allura/lib/helpers.py
----------------------------------------------------------------------
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 @@ from .security import has_access
# 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}$')