Skip to content

Commit

Permalink
MDL-13665 HTML editor is loaded as non-secure on the secure "Add new …
Browse files Browse the repository at this point in the history
…user" form, patch by Steve Bond; merged from MOOODLE_19_SATBLE
  • Loading branch information
skodak committed Feb 25, 2008
1 parent 5087c94 commit 183f9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Expand Up @@ -4862,7 +4862,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v

if ($usehtmleditor) {
if (!empty($courseid) and has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $courseid))) {
$httpsrequired = empty($HTTPSPAGEREQUIRED) ? '' : '&ampt;httpsrequired=1';
$httpsrequired = empty($HTTPSPAGEREQUIRED) ? '' : '&httpsrequired=1';
// needed for course file area browsing in image insert plugin
$str .= ($scriptcount < 1) ? '<script type="text/javascript" src="'.
$CFG->httpswwwroot .'/lib/editor/htmlarea/htmlarea.php?id='.$courseid.$httpsrequired.'"></script>'."\n" : '';
Expand Down

0 comments on commit 183f9cc

Please sign in to comment.