navigation MDL-20324 Frame busting now occurs for every nav link if framename is not _top
This commit is contained in:
@@ -409,7 +409,7 @@ class navigation_node {
|
||||
$link->add_class('dimmed');
|
||||
}
|
||||
|
||||
if (!empty($CFG->framename) && $PAGE->generaltype=='topframe') {
|
||||
if (!empty($CFG->framename) && ($PAGE->generaltype=='topframe' || $CFG->framename!='_top')) {
|
||||
$breakoutaction = new breakout_of_frame_action();
|
||||
$link->add_action($breakoutaction);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user