Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Francois Dockes
recoll-webui
Commits
9ed8494e
Commit
9ed8494e
authored
Oct 22, 2014
by
koniu
Browse files
Merge pull request #37 from dsheyp/patch-1
set expires-attribute for cookies
parents
15389e8f
38f2a84e
Changes
1
Hide whitespace changes
Inline
Side-by-side
webui.py
View file @
9ed8494e
...
...
@@ -342,10 +342,10 @@ def settings():
def
set
():
config
=
get_config
()
for
k
,
v
in
DEFAULTS
.
items
():
bottle
.
response
.
set_cookie
(
k
,
str
(
bottle
.
request
.
query
.
get
(
k
)),
max_age
=
3153600000
)
bottle
.
response
.
set_cookie
(
k
,
str
(
bottle
.
request
.
query
.
get
(
k
)),
max_age
=
3153600000
,
expires
=
3153600000
)
for
d
in
config
[
'dirs'
]:
cookie_name
=
'mount_%s'
%
urllib
.
quote
(
d
,
''
)
bottle
.
response
.
set_cookie
(
cookie_name
,
str
(
bottle
.
request
.
query
.
get
(
'mount_%s'
%
d
)),
max_age
=
3153600000
)
bottle
.
response
.
set_cookie
(
cookie_name
,
str
(
bottle
.
request
.
query
.
get
(
'mount_%s'
%
d
)),
max_age
=
3153600000
,
expires
=
3153600000
)
bottle
.
redirect
(
'./'
)
#}}}
#{{{ osd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment