소스 검색

Fixing cookie bug.

pull/24/head
Ben Kurtovic 12 년 전
부모
커밋
bc4c2de763
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. +0
    -1
      pages/settings.mako
  2. +1
    -1
      toolserver/settings.py

+ 0
- 1
pages/settings.mako 파일 보기

@@ -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 파일 보기

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


불러오는 중...
취소
저장