fixed problem with hidden extension, issue 720, thanks mdpedroso
This commit is contained in:
1 parent
500fcfa5e8
commit
ec811fe765
2 files changed
+4
-3
No files matched your search
@@ -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
|
args = items[1:] + args
|
||||||
else:
|
else:
|
||||||
function = f
|
function = f
|
||||||
if '.' in function:
|
|
||||||
function, extension = function.split('.', 1)
|
|
||||||
|
|
||||||
# if the url gets a static resource, don't force extention
|
# if the url gets a static resource, don't force extention
|
||||||
if controller == 'static':
|
if controller == 'static':
|
||||||
extension = None
|
extension = None
|
||||||
|
|
||||||
|
if '.' in function:
|
||||||
|
function, extension = function.split('.', 1)
|
||||||
|
|
||||||
function2 = '%s.%s' % (function,extension or 'html')
|
function2 = '%s.%s' % (function,extension or 'html')
|
||||||
|
|
||||||
if not (application and controller and function):
|
if not (application and controller and function):
|
||||||
|
|||||||
Reference in new issue
Block a user