Fix SSLify test
This commit is contained in:
parent
4b6be02e5a
commit
b36e764507
|
@ -59,7 +59,7 @@ rophako:
|
|||
# will do the following:
|
||||
# - Send HTTP Strict-Transport-Security header
|
||||
# - Use secure session cookies (SSL-only)
|
||||
force_ssl: true
|
||||
force_ssl: false
|
||||
|
||||
# Secret key used for session cookie signing. Make this long and hard to
|
||||
# guess.
|
||||
|
|
|
@ -44,7 +44,7 @@ app.secret_key = bytes(Config.security.secret_key.encode("utf-8")) \
|
|||
.decode(string_escape)
|
||||
|
||||
# Security?
|
||||
if Config.security.force_ssl == "true":
|
||||
if Config.security.force_ssl == True:
|
||||
app.config['SESSION_COOKIE_SECURE'] = True
|
||||
sslify = SSLify(app)
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ def edit_page(name, author, body, note, history=True):
|
|||
|
||||
# The new revision to be added.
|
||||
rev = dict(
|
||||
id=hashlib.md5(str(int(time.time()))).hexdigest(),
|
||||
id=hashlib.md5(str(int(time.time())).encode("utf-8")).hexdigest(),
|
||||
time=int(time.time()),
|
||||
author=author,
|
||||
body=body,
|
||||
|
|
Loading…
Reference in New Issue
Block a user