fixed problem with hidden extension, issue 720, thanks mdpedroso

This commit is contained in:
Massimo Di Pierro
2012-03-19 15:51:19 -05:00
parent 500fcfa5e8
commit ec811fe765
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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):