Invalidate existing HSTS headers

remotes/origin/stable5
Lukas Reschke 13 years ago
parent f4c9d4c067
commit be194c5b5b
  1. 5
      lib/base.php

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

Loading…
Cancel
Save