Kaynağa Gözat

Fixing cookie bug.

pull/24/head
Ben Kurtovic 12 yıl önce
ebeveyn
işleme
bc4c2de763
2 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. +0
    -1
      pages/settings.mako
  2. +1
    -1
      toolserver/settings.py

+ 0
- 1
pages/settings.mako Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet