|
|
|
@ -357,6 +357,11 @@ class rcube_template extends rcube_html_page
|
|
|
|
|
$template = preg_replace_callback('/<form\s+([^>]+)>/Ui', array($this, 'alter_form_tag'), $template);
|
|
|
|
|
$this->footer = preg_replace_callback('/<form\s+([^>]+)>/Ui', array($this, 'alter_form_tag'), $this->footer);
|
|
|
|
|
|
|
|
|
|
// send clickjacking protection headers
|
|
|
|
|
$iframe = $this->framed || !empty($_REQUEST['_framed']);
|
|
|
|
|
if (!headers_sent() && ($xframe = $this->app->config->get('x_frame_options', 'sameorigin')))
|
|
|
|
|
header('X-Frame-Options: ' . ($iframe && $xframe == 'deny' ? 'sameorigin' : $xframe));
|
|
|
|
|
|
|
|
|
|
// call super method
|
|
|
|
|
parent::write($template, $this->config['skin_path']);
|
|
|
|
|
}
|
|
|
|
|