Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

HSTS admin fixup; I guess it is not very good if "One Year" is part o…

…f the config.
  • Loading branch information...
commit 99044fc36d8beba15018ef22b133d2e09fc84606 1 parent 1d4f8a4
@skinkie authored alobbs committed
Showing with 3 additions and 3 deletions.
  1. +1 −1  admin/CTK
  2. +2 −2 admin/PageVServer.py
2  admin/CTK
@@ -1 +1 @@
-Subproject commit 49e0d36ea4e5ff912fd33ccd138f241a5105c351
+Subproject commit cf55a7c3a699f2c387262c87ae2c57d1d61bd440
View
4 admin/PageVServer.py
@@ -685,8 +685,8 @@ def __init__ (self, vsrv_num, refreshable):
table.Add (_('Enable HSTS'), CTK.CheckCfgText ('%s!hsts'%(pre), False, _('Accept')), _(NOTE_HSTS))
if int(CTK.cfg.get_val('%s!hsts' %(pre), "0")):
- table.Add (_('HSTS Max-Age'), CTK.TextCfg ('%s!hsts!max_age'%(pre), True, {'optional_string':_("One year")}), _(NOTE_HSTS_MAXAGE))
- table.Add (_('Include Subdomains'), CTK.CheckCfgText ('%s!subdomains'%(pre), True, _('Include all')), _(NOTE_HSTS_SUBDOMAINS))
+ table.Add (_('HSTS Max-Age'), CTK.TextCfg ('%s!hsts!max_age' %(pre), True, {'optional_string':_("31536000")}), _(NOTE_HSTS_MAXAGE))
+ table.Add (_('Include Subdomains'), CTK.CheckCfgText ('%s!hsts!subdomains'%(pre), True, _('Include all')), _(NOTE_HSTS_SUBDOMAINS))
submit = CTK.Submitter (url_apply)
submit.bind ('submit_success', refreshable.JS_to_refresh())
Please sign in to comment.
Something went wrong with that request. Please try again.