From 884aeb4d2ebab267e6f056b88969765dd3e32ada Mon Sep 17 00:00:00 2001 From: hannes Date: Tue, 26 Jan 2016 01:10:15 +0000 Subject: [PATCH] common_purify() doesn't remove wordpress' and facebook's javascript properly, maybe better to keep the data intact, and do strip_tags or something similar when using the data --- plugins/Oembed/lib/oembedhelper.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/Oembed/lib/oembedhelper.php b/plugins/Oembed/lib/oembedhelper.php index b0527b7529..5d84d68d8c 100644 --- a/plugins/Oembed/lib/oembedhelper.php +++ b/plugins/Oembed/lib/oembedhelper.php @@ -161,11 +161,6 @@ class oEmbedHelper $oembed_data = HTTPClient::quickGetJson($api, $params); - // purify html - if(isset($oembed_data->html)) { - $oembed_data->html = common_purify($oembed_data->html); - } - return $oembed_data; }