Skip to content

Commit

Permalink
MDL-27069 fix notice when inserting images in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 10, 2011
1 parent fb8642b commit 7e58c03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/editor/htmlarea/popups/insert_image.php
Expand Up @@ -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));
Expand Down
2 changes: 2 additions & 0 deletions lib/editor/htmlarea/popups/insert_image_std.php
Expand Up @@ -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')) {
Expand Down

0 comments on commit 7e58c03

Please sign in to comment.