mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 15:40:17 +01:00
Merge branch 'MDL-49284' of git://github.com/timhunt/moodle
This commit is contained in:
commit
5b0f2ad976
@ -2905,7 +2905,7 @@ class MoodleQuickForm_Rule_Required extends HTML_QuickForm_Rule {
|
||||
global $CFG;
|
||||
if (!empty($CFG->strictformsrequired)) {
|
||||
if (!empty($format) && $format == FORMAT_HTML) {
|
||||
return array('', "{jsVar}.replace(/(<[^img|hr|canvas]+>)| |\s+/ig, '') == ''");
|
||||
return array('', "{jsVar}.replace(/(<(?!img|hr|canvas)[^>]*>)| |\s+/ig, '') == ''");
|
||||
} else {
|
||||
return array('', "{jsVar}.replace(/^\s+$/g, '') == ''");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user