diff --git a/pages/settings.mako b/pages/settings.mako index ff5729d..413aec6 100644 --- a/pages/settings.mako +++ b/pages/settings.mako @@ -3,7 +3,6 @@ <% bot, cookies, langs, projects = main(environ, headers) %>

Settings

This page contains some configurable options for this Toolserver site. Settings are saved as cookies. You can view and delete all cookies generated by this site at the bottom of this page.

-

Options

diff --git a/toolserver/settings.py b/toolserver/settings.py index f3609e5..fee9756 100644 --- a/toolserver/settings.py +++ b/toolserver/settings.py @@ -19,7 +19,7 @@ def main(context, environ, headers): set_cookie(headers, cookies, key, query.project, 365) elif query.action == "delete": if query.cookie in cookies: - delete_cookie(headers, cookies, query.cookie) + delete_cookie(headers, cookies, query.cookie.encode("utf8")) elif query.all: for cookie in cookies.values(): delete_cookie(headers, cookies, cookie.key)