Merge pull request #1705 from owncloud/DisableHSTS

Invalidate existing HSTS headers
This commit is contained in:
Lukas Reschke 2013-02-14 11:33:26 -08:00
commit b6cbfc9cfe

View file

@ -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');
}
}
}