fixed problem with hidden extension, issue 720, thanks mdpedroso
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.7 (2012-03-19 15:45:58) dev
|
||||
Version 1.99.7 (2012-03-19 15:51:10) dev
|
||||
|
||||
+3
-2
@@ -266,13 +266,14 @@ def URL(
|
||||
args = items[1:] + args
|
||||
else:
|
||||
function = f
|
||||
if '.' in function:
|
||||
function, extension = function.split('.', 1)
|
||||
|
||||
# if the url gets a static resource, don't force extention
|
||||
if controller == 'static':
|
||||
extension = None
|
||||
|
||||
if '.' in function:
|
||||
function, extension = function.split('.', 1)
|
||||
|
||||
function2 = '%s.%s' % (function,extension or 'html')
|
||||
|
||||
if not (application and controller and function):
|
||||
|
||||
Reference in New Issue
Block a user