Permalink
Browse files

Fix to break out of frames

  • Loading branch information...
1 parent 4359e8f commit 3e50a13968fac2a805f937ba4874d506bb10ea44 moodler committed Nov 10, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/weblib.php
View
@@ -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";

0 comments on commit 3e50a13

Please sign in to comment.