mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
improved handling of relative URLs for media files in jqz files
This commit is contained in:
parent
f841494c62
commit
e7801d39dc
@ -1744,7 +1744,8 @@ function hotpot_convert_relative_url($baseurl, $reference, $opentag, $url, $clos
|
||||
}
|
||||
|
||||
// catch <PARAM name="FlashVars" value="TheSound=soundfile.mp3">
|
||||
if (preg_match('|^'.'\w+=[^&]+'.'('.'&(amp;)?'.'\w+=[^&]+)*'.'$|', $url)) {
|
||||
// ampersands can appear as "&", "&" or "&#x0026;amp;"
|
||||
if (preg_match('|^'.'\w+=[^&]+'.'('.'&((amp;#x0026;)?amp;)?'.'\w+=[^&]+)*'.'$|', $url)) {
|
||||
$query = $url;
|
||||
$url = '';
|
||||
$fragment = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user