improved handling of relative URLs for media files in jqz files

This commit is contained in:
gbateson 2006-02-24 09:57:25 +00:00
parent f841494c62
commit e7801d39dc

View File

@ -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 "&", "&amp;" or "&amp;#x0026;amp;"
if (preg_match('|^'.'\w+=[^&]+'.'('.'&((amp;#x0026;)?amp;)?'.'\w+=[^&]+)*'.'$|', $url)) {
$query = $url;
$url = '';
$fragment = '';