Pārlūkot izejas kodu

Fixing cookie bug.

pull/24/head
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
bc4c2de763
2 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. +0
    -1
      pages/settings.mako
  2. +1
    -1
      toolserver/settings.py

+ 0
- 1
pages/settings.mako Parādīt failu

@@ -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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt