Merge pull request #1705 from owncloud/DisableHSTS

Invalidate existing HSTS headers
remotes/origin/stable5
Lukas Reschke 14 years ago
commit b6cbfc9cfe
  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