personal oembed black/white list

This commit is contained in:
redmatrix
2015-08-04 20:07:55 -07:00
parent 5344431fc0
commit ea63f3312f
2 changed files with 30 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ require_once('include/hubloc.php');
function tryoembed($match) {
$url = ((count($match) == 2) ? $match[1] : $match[2]);
$o = oembed_fetch_url($url);
if ($o->type == 'error')