From ec811fe7658cf6c1ae093cbb3184905398de667f Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Mon, 19 Mar 2012 15:51:19 -0500 Subject: [PATCH] fixed problem with hidden extension, issue 720, thanks mdpedroso --- VERSION | 2 +- gluon/html.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 96d76a91..690f5d30 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-03-19 15:45:58) dev +Version 1.99.7 (2012-03-19 15:51:10) dev diff --git a/gluon/html.py b/gluon/html.py index ae14f167..3ca402e2 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -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):