Factoids: Fix names of utils.web.url(un)quote.

This commit is contained in:
Valentin Lorentz 2016-06-04 18:53:55 +02:00
parent cc0eaaef0c
commit 59df2ff038

View File

@ -127,7 +127,7 @@ class FactoidsCallback(httpserver.SupyHTTPServerCallback):
self.end_headers()
self.write(httpserver.get_template('factoids/index.html'))
elif len(parts) == 2:
channel = utils.web.unquote(parts[0])
channel = utils.web.urlunquote(parts[0])
if not ircutils.isChannel(channel):
self.send_response(404)
self.send_header('Content-type', 'text/html; charset=utf-8')
@ -182,7 +182,7 @@ class FactoidsCallback(httpserver.SupyHTTPServerCallback):
if 'chan' in form:
self.send_response(303)
self.send_header('Location',
'./%s/' % utils.web.quote(form['chan'].value))
'./%s/' % utils.web.urlquote(form['chan'].value))
self.end_headers()
else:
self.send_response(400)