You are here

function seckit_update_6104 in Security Kit 6

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 77
Install/uninstall actions for SecKit.

Code

function seckit_update_6104() {

  // update CSP directives
  $options = variable_get('seckit_xss', array());

  // 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);
}