summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-01 22:35:28 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-01 22:35:28 +0000
commit90a95fd1665b32fdb5db16373be856d5b9e3e093 (patch)
tree749fcb93d04cbeef20c1628dea4cc5e488c3c646 /includes
parent587d9d7bcff160830fe745ca43f4934b0311a65e (diff)
downloadbrdo-90a95fd1665b32fdb5db16373be856d5b9e3e093.tar.gz
brdo-90a95fd1665b32fdb5db16373be856d5b9e3e093.tar.bz2
#1011308 by droplet: Fixed Call to undefined function decode_entities IN common.inc
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc4
1 files changed, 4 insertions, 0 deletions
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));