From 83eeadf849a16b6deddf56a2e72298af9cde0da0 Mon Sep 17 00:00:00 2001 From: RanAwaySuccessfully Date: Fri, 19 Jan 2018 21:56:19 -0200 Subject: [PATCH] excuse me, that fix should be in a separate branch --- lib/function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/function.php b/lib/function.php index 87f7451..fcc99cb 100644 --- a/lib/function.php +++ b/lib/function.php @@ -537,7 +537,7 @@ function doreplace2($msg, $options='0|0'){ $msg=preg_replace("'\[url\](.*?)\[/url\]'si", '\\1', $msg); $msg=preg_replace("'\[url=(.*?)\](.*?)\[/url\]'si", '\\2', $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})\[/youtube\]'si", '', $msg); + $msg=preg_replace("'\[youtube\]([a-zA-Z0-9_-]{11})\[/youtube\]'si", '', $msg); do {