fixed router regex runaway, thanks Jonathan
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.2.1 (2012-11-23 08:01:16) stable
|
Version 2.2.1 (2012-11-23 11:57:55) stable
|
||||||
|
|||||||
+1
-1
@@ -76,7 +76,7 @@ def _router_default():
|
|||||||
map_hyphen=False,
|
map_hyphen=False,
|
||||||
acfe_match=r'\w+$', # legal app/ctlr/fcn/ext
|
acfe_match=r'\w+$', # legal app/ctlr/fcn/ext
|
||||||
file_match=r'([-+=@$%\w]+[./]?)+$', # legal static subpath
|
file_match=r'([-+=@$%\w]+[./]?)+$', # legal static subpath
|
||||||
args_match=r'([\w@ -]+[=.]?)*$', # legal arg in args
|
args_match=r'([\w@ -]|(?<=[\w@ -])[.=])*$', # legal arg in args
|
||||||
)
|
)
|
||||||
return router
|
return router
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user