regex was still broken

This commit is contained in:
zotlabs 2017-09-10 22:59:26 -07:00
parent 187fc9a51b
commit 471449f539

View File

@ -231,7 +231,7 @@ function oembed_fetch_url($embedurl){
// So if we see this, grab the frame src url and use that
// as the embed content - which will still need to be purified.
if(preg_match('#<iframe(.*?)src=[\'\"](.*?)[\'\"]#',$matches,$j['html'])) {
if(preg_match('#\<iframe(.*?)src\=[\'\"](.*?)[\'\"]#',$j['html'],$matches)) {
$x = z_fetch_url($matches[2]);
$j['html'] = $x['body'];
}