From: Nicolas Boisselier Date: Sun, 10 Jun 2018 03:05:57 +0000 (+0100) Subject: lib/lua/nb.lua X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=48fc3c59099df6b004346f8fc383a2bdfcaaec6d;p=nb.git lib/lua/nb.lua --- diff --git a/lib/php/mime.php b/lib/php/mime.php index 11e0c106..9b327d11 100644 --- a/lib/php/mime.php +++ b/lib/php/mime.php @@ -752,12 +752,13 @@ class Mime { ], 'youtube' => [ 'exp' => 'www.youtube.com/watch\?v=([^&\s]+)', - 'html' => '', + .'>', ], ]; @@ -795,9 +796,10 @@ class Mime { return $init . ''.$str.''; + # NB 10.06.18: TODEL $id = ''; if (!preg_match(',//www.youtube.com/watch\?v=([^&\s]+),',$str,$m)) return $str; $id = $m[1];