From 90a95fd1665b32fdb5db16373be856d5b9e3e093 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 1 Jan 2011 22:35:28 +0000 Subject: #1011308 by droplet: Fixed Call to undefined function decode_entities IN common.inc --- includes/common.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 439b382da..cef3e45ca 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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)); -- cgit v1.2.3