Permalink
Browse files

improved handling of relative URLs for media files in jqz files

  • Loading branch information...
1 parent f841494 commit e7801d39dc45513a0c0373ef85c42be36c0fecab gbateson committed Feb 24, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/hotpot/lib.php
View
@@ -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 = '';

0 comments on commit e7801d3

Please sign in to comment.