Changeset c170bfc in github
- Timestamp:
- Sep 5, 2011 4:39:52 AM (22 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
- Children:
- 67eecde
- Parents:
- 94a5a24
- Files:
-
- 2 edited
-
config/main.inc.php.dist (modified) (1 diff)
-
program/include/rcube_template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
config/main.inc.php.dist
rf7b58af rc170bfc 237 237 // check referer of incoming requests 238 238 $rcmail_config['referer_check'] = false; 239 240 // X-Frame-Options HTTP header value sent to prevent from Clickjacking. 241 // Possible values: sameorigin|deny. Set to false in order to disable sending them 242 $rcmail_confoig['x_frame_options'] = 'sameorigin'; 239 243 240 244 // this key is used to encrypt the users imap password which is stored -
program/include/rcube_template.php
r9e443d1 rc170bfc 357 357 $template = preg_replace_callback('/<form\s+([^>]+)>/Ui', array($this, 'alter_form_tag'), $template); 358 358 $this->footer = preg_replace_callback('/<form\s+([^>]+)>/Ui', array($this, 'alter_form_tag'), $this->footer); 359 360 // send clickjacking protection headers 361 $iframe = $this->framed || !empty($_REQUEST['_framed']); 362 if (!headers_sent() && ($xframe = $this->app->config->get('x_frame_options', 'sameorigin'))) 363 header('X-Frame-Options: ' . ($iframe && $xframe == 'deny' ? 'sameorigin' : $xframe)); 359 364 360 365 // call super method
Note: See TracChangeset
for help on using the changeset viewer.
