function seckit_update_7104 in Security Kit 7
Removes Content-Security-Policy "frame-ancestors" directive and "options".
They are removed from stable version of specification http://www.w3.org/TR/CSP.
File
- ./
seckit.install, line 114 - Install/update/uninstall actions for SecKit.
Code
function seckit_update_7104() {
// update CSP directives
$options = variable_get('seckit_xss');
// frame-ancestors is removed
unset($options['csp']['frame-ancestors']);
// options is removed
unset($options['csp']['options']);
// delete and set new version of variable
variable_del('seckit_xss');
variable_set('seckit_xss', $options);
}