From 7e58c03d6cb2bfaa84a5bf0f8f513522b71e2a9f Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 10 Apr 2011 21:16:24 +0200 Subject: [PATCH] MDL-27069 fix notice when inserting images in editor --- lib/editor/htmlarea/popups/insert_image.php | 1 + lib/editor/htmlarea/popups/insert_image_std.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/editor/htmlarea/popups/insert_image.php b/lib/editor/htmlarea/popups/insert_image.php index 36a436aad0c..5822ef3df7d 100644 --- a/lib/editor/htmlarea/popups/insert_image.php +++ b/lib/editor/htmlarea/popups/insert_image.php @@ -3,6 +3,7 @@ require("../../../../config.php"); $id = optional_param('id', SITEID, PARAM_INT); + $httpsrequired = optional_param('httpsrequired', 0, PARAM_BOOL); require_login($id); require_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $id)); diff --git a/lib/editor/htmlarea/popups/insert_image_std.php b/lib/editor/htmlarea/popups/insert_image_std.php index 33e88a2aaed..1bb913afec5 100644 --- a/lib/editor/htmlarea/popups/insert_image_std.php +++ b/lib/editor/htmlarea/popups/insert_image_std.php @@ -2,8 +2,10 @@ require("../../../../config.php"); $id = optional_param('id', SITEID, PARAM_INT); + $httpsrequired = optional_param('httpsrequired', 0, PARAM_BOOL); require_course_login($id); + @header('Content-Type: text/html; charset=utf-8'); if ($httpsrequired or (!empty($_SERVER['HTTPS']) and $_SERVER['HTTPS'] != 'off')) {