incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [30/50] git commit: [#4896] tweak re_path_portion_fragment so that 1- and 2- length fragments aren't dropped completely
Date Wed, 19 Sep 2012 18:43:27 GMT
[#4896] tweak re_path_portion_fragment so that 1- and 2- length fragments aren't dropped completely


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/996737bc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/996737bc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/996737bc

Branch: refs/heads/master
Commit: 996737bca55288865363074ba299c002dad4792f
Parents: 4de3c39
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Tue Sep 11 16:02:38 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Sep 11 16:02:38 2012 +0000

----------------------------------------------------------------------
 Allura/allura/lib/helpers.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/996737bc/Allura/allura/lib/helpers.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index 62d0259..1f16274 100644
--- a/Allura/allura/lib/helpers.py
+++ b/Allura/allura/lib/helpers.py
@@ -36,7 +36,7 @@ from allura.lib.decorators import exceptionless
 from allura.lib import AsciiDammit
 from .security import has_access
 
-re_path_portion_fragment = re.compile(r'[a-z][-a-z0-9]{2,}')
+re_path_portion_fragment = re.compile(r'[a-z][-a-z0-9]+')
 re_path_portion = re.compile(r'^[a-z][-a-z0-9]{2,}$')
 re_clean_vardec_key = re.compile(r'''\A
 ( # first part


Mime
View raw message