From fd2ed38274f43bca1ee1869ebd0a166a9572595f Mon Sep 17 00:00:00 2001 From: RanAwaySuccessfully <RanAwaySuccessfully@users.noreply.github.com> Date: Wed, 11 Jan 2017 19:09:59 -0200 Subject: [PATCH] we're off to a great start already --- lib/function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/function.php b/lib/function.php index a48927d..c7f259d 100644 --- a/lib/function.php +++ b/lib/function.php @@ -536,7 +536,7 @@ function doreplace2($msg, $options='0|0'){ $msg=preg_replace("'\[url\](.*?)\[/url\]'si", '<a href=\\1>\\1</a>', $msg); $msg=preg_replace("'\[url=(.*?)\](.*?)\[/url\]'si", '<a href=\\1>\\2</a>', $msg); $msg=str_replace('http://nightkev.110mb.com/justus_layout.css','about:blank',$msg); - $msg=preg_replace("'\[youtube\](?:https://(?:www\.)?youtu(?:\.be/|be\.com/watch\?v=))?([\w-]{11})(?:(?:\?|\&)t=\w{1,})?\[/youtube\]'si", '<iframe src="https://www.youtube.com/embed/\1" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>', $msg); + $msg=preg_replace("'\[youtube\](?:https://(?:www\.)?youtu(?:\.be/|be\.com/watch\?v=))?([\w-]{11}(?:(?:\?|\&)t=\w{1,})?)\[/youtube\]'si", '<iframe src="https://www.youtube.com/embed/\1" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>', $msg); do {