From 64aea3f0556e1dcf85268163c1e69b9de51999e0 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Mon, 9 Apr 2007 20:40:22 +0000 Subject: [PATCH] Merged from MOODLE_17_STABLE: add support for https source for popups previously fullscreen.php tried to load any javascript files that were running in the popup's parent. If the source of the script didn't start with "http:" it was assumed that it must be a relative path. This caused problems when it tried to make it into an absolute path. Fixed Regex to include support for https Credit: Peter Bulmer --- lib/editor/htmlarea/popups/fullscreen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editor/htmlarea/popups/fullscreen.php b/lib/editor/htmlarea/popups/fullscreen.php index a85fb9bfc5..721810f887 100644 --- a/lib/editor/htmlarea/popups/fullscreen.php +++ b/lib/editor/htmlarea/popups/fullscreen.php @@ -29,7 +29,7 @@ for (var i = 0; i < scripts.length; ++i) { // document.write(""); var new_script = document.createElement("script"); - if (/^http:/i.test(script.src)) { + if (/^https?:/i.test(script.src)) { new_script.src = script.src; } else { new_script.src = "../" + script.src; -- 2.39.5