From 8d238890a244109ffed0b43acef30fd39669257b Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 20 Sep 2012 11:16:51 -0500 Subject: [PATCH] fixed issue 1021, thanks Edouard and Jonathan --- VERSION | 2 +- gluon/rewrite.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6938aeab..51358869 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-20 09:27:02) stable +Version 2.0.9 (2012-09-20 11:16:45) stable diff --git a/gluon/rewrite.py b/gluon/rewrite.py index bd7cd408..79ac23d0 100644 --- a/gluon/rewrite.py +++ b/gluon/rewrite.py @@ -192,6 +192,7 @@ def url_out(request, env, application, controller, function, port = '' else: port = ':%s' % port + host = host.split(':')[0] url = '%s://%s%s%s' % (scheme, host, port, url) return url