Explorar el Código

Fixing cookie bug.

pull/24/head
Ben Kurtovic hace 12 años
padre
commit
bc4c2de763
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. +0
    -1
      pages/settings.mako
  2. +1
    -1
      toolserver/settings.py

+ 0
- 1
pages/settings.mako Ver fichero

@@ -3,7 +3,6 @@
<% bot, cookies, langs, projects = main(environ, headers) %>
<h1>Settings</h1>
<p>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.</p>
<h2>Options</h2>
<form action="${environ['PATH_INFO']}" method="post">
<input type="hidden" name="action" value="set">
<table>


+ 1
- 1
toolserver/settings.py Ver fichero

@@ -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)


Cargando…
Cancelar
Guardar