From 602e07a967ae6c8a469cf68d15224055f6840d97 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 ee401c19489..28a0aef8801 100644
--- a/lib/classes/StudipCoreFormat.php
+++ b/lib/classes/StudipCoreFormat.php
@@ -618,11 +618,6 @@ class StudipCoreFormat extends TextFormat
             );
         }
 
-        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