mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 21:22:39 +01:00
Factoids: Fix names of utils.web.url(un)quote.
This commit is contained in:
parent
cc0eaaef0c
commit
59df2ff038
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user