Invalidate existing HSTS headers

remotes/origin/stable5
Lukas Reschke 2013-02-14 19:23:29 +07:00
parent f4c9d4c067
commit be194c5b5b
1 changed files with 5 additions and 0 deletions

@ -231,6 +231,11 @@ class OC {
header("Location: $url");
exit();
}
} else {
// Invalidate HSTS headers
if (OC_Request::serverProtocol() === 'https') {
header('Strict-Transport-Security: max-age=0');
}
}
}