MDL-54967 backup: Fix IMS CC import URL decoding for XML format
HTML encoding special characters to avoid XML compatibility issues during Course backup restoration and avoid double encoding.
This commit is contained in:
@@ -99,7 +99,7 @@ class cc11_resource extends entities11 {
|
||||
$link = 'http://invalidurldetected/';
|
||||
}
|
||||
} else {
|
||||
$link = $rawlink;
|
||||
$link = htmlspecialchars(trim($rawlink), ENT_COMPAT, 'UTF-8', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user