Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix to break out of frames

  • Loading branch information...
commit 3e50a13968fac2a805f937ba4874d506bb10ea44 1 parent 4359e8f
moodler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/weblib.php
View
4 lib/weblib.php
@@ -287,8 +287,8 @@ function popup_form ($common, $options, $formname, $selected="", $nothing="choos
$nothing = get_string("choose")."...";
}
- $output = "<FORM NAME=$formname>";
- $output .= "<SELECT NAME=popup onChange=\"window.location=document.$formname.popup.options[document.$formname.popup.selectedIndex].value\">\n";
+ $output = "<FORM TARGET=_top NAME=$formname>";
+ $output .= "<SELECT NAME=popup onChange=\"top.location=document.$formname.popup.options[document.$formname.popup.selectedIndex].value\">\n";
if ($nothing != "") {
$output .= " <OPTION VALUE=\"javascript:void(0)\">$nothing</OPTION>\n";
Please sign in to comment.
Something went wrong with that request. Please try again.