Commit f4b425c3 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update selector.py to fix a bug in the method Selector.repr_url.

parent af67641b
......@@ -207,11 +207,12 @@ class Selector(Storage):
if k.startswith(tablename) and len(v):
data.append("%s=%s" % (k, v))
t = (current.request.env.http_host,
t = (("https" if current.request.is_https else "http"),
current.request.env.http_host,
current.request.env.path_info,
'&'.join(data))
"&".join(data))
url = "http://%s%s?%s" % t
url = "%s://%s%s?%s" % t
return url
def select(self, table, *args, **kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment