Sfoglia il codice sorgente

Fixing cookie bug.

pull/24/head
Ben Kurtovic 12 anni fa
parent
commit
bc4c2de763
2 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. +0
    -1
      pages/settings.mako
  2. +1
    -1
      toolserver/settings.py

+ 0
- 1
pages/settings.mako Vedi File

@@ -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 Vedi File

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


Caricamento…
Annulla
Salva