From d8ff37d845edb99a5ad24ae57c0b087e213c70d6 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Thu, 23 May 2024 10:26:23 +0000
Subject: [PATCH] remove fallback to non-existing flash player, fixes #4207

Closes #4207

Merge request studip/studip!3036
---
 lib/classes/StudipCoreFormat.php | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/classes/StudipCoreFormat.php b/lib/classes/StudipCoreFormat.php
index 24c4ddcdf62..7e3358c8aab 100644
--- a/lib/classes/StudipCoreFormat.php
+++ b/lib/classes/StudipCoreFormat.php
@@ -605,11 +605,6 @@ class StudipCoreFormat extends TextFormat
             $title
         );
 
-        if ($tag === 'audio') {
-            $random_id = 'audio-' . mb_substr(md5(uniqid('audio', true)), -8);
-            $media = str_replace('<audio ', '<audio id="' . $random_id . '" onerror="STUDIP.Audio.handle(this);" ', $media);
-        }
-
         if ($link && $tag === "img") {
             $media = sprintf('<a href="%s"%s>%s</a>',
                 $link,
-- 
GitLab