MDL-8096 fixed & in htmlarea httpsrequired parameter - xhtml strict fix; backported from HEAD
This commit is contained in:
+1
-1
@@ -3883,7 +3883,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) ? '' : '&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" : '';
|
||||
|
||||
Reference in New Issue
Block a user