Merge branch 'MDL-85505-main' of https://github.com/catalyst/moodle

This commit is contained in:
Huong Nguyen
2025-08-14 09:47:51 +07:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -912,7 +912,7 @@ function get_host_from_url($url) {
* images, objects, etc.
*/
function html_is_blank($string) {
return trim(strip_tags((string)$string, '<img><object><applet><input><select><textarea><hr>')) == '';
return trim(strip_tags((string)$string, '<img><object><applet><input><select><textarea><hr><iframe>')) == '';
}
/**
+1
View File
@@ -5481,6 +5481,7 @@ EOT;
$this->assertEquals(true, html_is_blank('<p> </p>'));
$this->assertEquals(false, html_is_blank('<p>.</p>'));
$this->assertEquals(false, html_is_blank('<img src="#">'));
$this->assertEquals(false, html_is_blank('<iframe></iframe>'));
}
/**