forked from GNUsocial/gnu-social
configuration option to bust frames or not
This commit is contained in:
parent
64925a275e
commit
a430540155
3
README
3
README
@ -1139,6 +1139,9 @@ ssl: Whether to use SSL for JavaScript files. Default is null, which means
|
|||||||
sslserver: SSL server to use when page is HTTPS-encrypted. If
|
sslserver: SSL server to use when page is HTTPS-encrypted. If
|
||||||
unspecified, site ssl server and so on will be used.
|
unspecified, site ssl server and so on will be used.
|
||||||
sslpath: If sslserver if defined, path to use when page is HTTPS-encrypted.
|
sslpath: If sslserver if defined, path to use when page is HTTPS-encrypted.
|
||||||
|
bustframes: If true, all web pages will break out of framesets. If false,
|
||||||
|
can comfortably live in a frame or iframe... probably. Default
|
||||||
|
to true.
|
||||||
|
|
||||||
xmpp
|
xmpp
|
||||||
----
|
----
|
||||||
|
@ -298,7 +298,9 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
$this->script('util.min.js');
|
$this->script('util.min.js');
|
||||||
$this->showScriptMessages();
|
$this->showScriptMessages();
|
||||||
// Frame-busting code to avoid clickjacking attacks.
|
// Frame-busting code to avoid clickjacking attacks.
|
||||||
$this->inlineScript('if (window.top !== window.self) { window.top.location.href = window.self.location.href; }');
|
if (common_config('javascript', 'bustframes')) {
|
||||||
|
$this->inlineScript('if (window.top !== window.self) { window.top.location.href = window.self.location.href; }');
|
||||||
|
}
|
||||||
Event::handle('EndShowStatusNetScripts', array($this));
|
Event::handle('EndShowStatusNetScripts', array($this));
|
||||||
Event::handle('EndShowLaconicaScripts', array($this));
|
Event::handle('EndShowLaconicaScripts', array($this));
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,8 @@ $default =
|
|||||||
'javascript' =>
|
'javascript' =>
|
||||||
array('server' => null,
|
array('server' => null,
|
||||||
'path'=> null,
|
'path'=> null,
|
||||||
'ssl' => null),
|
'ssl' => null,
|
||||||
|
'bustframes' => true),
|
||||||
'local' => // To override path/server for themes in 'local' dir (not currently applied to local plugins)
|
'local' => // To override path/server for themes in 'local' dir (not currently applied to local plugins)
|
||||||
array('server' => null,
|
array('server' => null,
|
||||||
'dir' => null,
|
'dir' => null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user