From a49c5745b0ad137eee1127e9e7da2967fd56950c Mon Sep 17 00:00:00 2001 From: im-mi Date: Wed, 14 Sep 2016 18:08:12 -0400 Subject: [PATCH] Use html_escape instead of htmlspecialchars --- ext/tag_editcloud/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/tag_editcloud/main.php b/ext/tag_editcloud/main.php index aca32af7..f9325aae 100644 --- a/ext/tag_editcloud/main.php +++ b/ext/tag_editcloud/main.php @@ -134,7 +134,7 @@ class TagEditCloud extends Extension { } $size = sprintf("%.2f", max($row['scaled'],0.5)); - $js = htmlspecialchars('tageditcloud_toggle_tag(this,'.json_encode($full_tag).')',ENT_QUOTES); //Ugly, but it works + $js = html_escape('tageditcloud_toggle_tag(this,'.json_encode($full_tag).')'); //Ugly, but it works if(array_search($row['tag'],$image->get_tag_array()) !== FALSE) { if($used_first) {