From 522e2249c62eea2e748d2df8710e5a0c1ea40bb0 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 22 Feb 2004 02:51:42 +0000 Subject: [PATCH] More robustness when dealing with links that may have HTML tags within the link. --- filter/mediaplugin/filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/mediaplugin/filter.php b/filter/mediaplugin/filter.php index 9c4e2f0506..d13c88326d 100644 --- a/filter/mediaplugin/filter.php +++ b/filter/mediaplugin/filter.php @@ -28,7 +28,7 @@ function mediaplugin_filter($courseid, $text) { global $CFG; - $search = '/]*)>([^>]*)<\/a>/i'; + $search = '/]*)>(.*?)<\/a>/i'; $replace = '\\0