diff options
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 8b5ceeeab3b..e5da51efd54 100644 --- a/lib/base.php +++ b/lib/base.php @@ -200,6 +200,11 @@ class OC{ header("Location: $url"); exit(); } + } else { + // Invalidate HSTS headers + if (OC_Request::serverProtocol() === 'https') { + header('Strict-Transport-Security: max-age=0'); + } } } |