mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-05 02:06:52 +00:00
Correction d'un problème concernant l'affichage des vidéos Youtube
This commit is contained in:
parent
04f7bcfa68
commit
689d798dc3
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user