aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-25 20:47:30 -0700
committerMario Vavti <mario@mariovavti.com>2018-04-26 09:42:54 +0200
commitb8aabde6c33f763984f3189b79f22cb8d62f2188 (patch)
tree15d82971088411e26d0082cad8ee9bbd5ce7faa9 /include/oembed.php
parent44d4f0a4844c50a1e4a1298df01ddfdcdfc3365c (diff)
downloadvolse-hubzilla-b8aabde6c33f763984f3189b79f22cb8d62f2188.tar.gz
volse-hubzilla-b8aabde6c33f763984f3189b79f22cb8d62f2188.tar.bz2
volse-hubzilla-b8aabde6c33f763984f3189b79f22cb8d62f2188.zip
malformed embeds from gfycat hubzilla issue #1108
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/oembed.php b/include/oembed.php
index eee53b6c1..e677087a2 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -234,9 +234,11 @@ function oembed_fetch_url($embedurl){
if(preg_match('#\<iframe(.*?)src\=[\'\"](.*?)[\'\"]#',$j['html'],$matches)) {
$x = z_fetch_url($matches[2]);
- $j['html'] = $x['body'];
+ $orig = $j['html'] = $x['body'];
}
-
+
+ logger('frame src: ' . $j['html'], LOGGER_DATA);
+
$j['html'] = purify_html($j['html'],$allow_position);
if($j['html'] != $orig) {
logger('oembed html was purified. original: ' . $orig . ' purified: ' . $j['html'], LOGGER_DEBUG, LOG_INFO);