patch 705, not extensions in URL for static files, thanks guruyaya
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.7 (2012-03-12 15:15:29) dev
|
||||
Version 1.99.7 (2012-03-12 15:27:08) dev
|
||||
|
||||
@@ -268,6 +268,10 @@ def URL(
|
||||
if '.' in function:
|
||||
function, extension = function.split('.', 1)
|
||||
|
||||
# if the url gets a static resource, don't force extention
|
||||
if controller == 'static':
|
||||
extension = None
|
||||
|
||||
function2 = '%s.%s' % (function,extension or 'html')
|
||||
|
||||
if not (application and controller and function):
|
||||
|
||||
Reference in New Issue
Block a user