Skip to content
Snippets Groups Projects
Commit 90a95fd1 authored by Angie Byron's avatar Angie Byron
Browse files

#1011308 by droplet: Fixed Call to undefined function decode_entities IN common.inc

parent 587d9d7b
No related branches found
No related tags found
No related merge requests found
......@@ -1549,6 +1549,10 @@ function filter_xss_bad_protocol($string, $decode = TRUE) {
// @todo Remove the $decode parameter in Drupal 8, and always assume an HTML
// string that needs decoding.
if ($decode) {
if (!function_exists('decode_entities')) {
require_once DRUPAL_ROOT . '/includes/unicode.inc';
}
$string = decode_entities($string);
}
return check_plain(drupal_strip_dangerous_protocols($string));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment