From 689d798dc348839f9d0eb97ed822c3c51c92fa4c Mon Sep 17 00:00:00 2001 From: Yohann Date: Sun, 22 Dec 2019 19:19:02 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20probl=C3=A8me=20concernant?= =?UTF-8?q?=20l'affichage=20des=20vid=C3=A9os=20Youtube?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_files/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_files/model.php b/server_files/model.php index bf48200..95b8c9b 100644 --- a/server_files/model.php +++ b/server_files/model.php @@ -298,7 +298,7 @@ function exportProblemsData() { function displayVideo($link) { - if (preg_match("#(https?://|)(www\.|)(youtube\.com/watch\?v=|youtu.be/)([a-zA-Z0-9]*)?.*?#", $link, $matches)) { + if (preg_match("#(https?://|)(www\.|)(youtube\.com/watch\?v=|youtu.be/)([a-zA-Z0-9,\-,_]*)?.*?#", $link, $matches)) { $code = $matches[4]; /** @noinspection HtmlDeprecatedAttribute */ /** @noinspection HtmlDeprecatedTag */