malformed embeds from gfycat hubzilla issue #1108
This commit is contained in:
parent
5f8b093d79
commit
33f446fcd0
@ -234,9 +234,11 @@ function oembed_fetch_url($embedurl){
|
|||||||
|
|
||||||
if(preg_match('#\<iframe(.*?)src\=[\'\"](.*?)[\'\"]#',$j['html'],$matches)) {
|
if(preg_match('#\<iframe(.*?)src\=[\'\"](.*?)[\'\"]#',$j['html'],$matches)) {
|
||||||
$x = z_fetch_url($matches[2]);
|
$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);
|
$j['html'] = purify_html($j['html'],$allow_position);
|
||||||
if($j['html'] != $orig) {
|
if($j['html'] != $orig) {
|
||||||
logger('oembed html was purified. original: ' . $orig . ' purified: ' . $j['html'], LOGGER_DEBUG, LOG_INFO);
|
logger('oembed html was purified. original: ' . $orig . ' purified: ' . $j['html'], LOGGER_DEBUG, LOG_INFO);
|
||||||
|
Reference in New Issue
Block a user