Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improved handling of relative URLs for media files in jqz files

  • Loading branch information...
commit e7801d39dc45513a0c0373ef85c42be36c0fecab 1 parent f841494
gbateson authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  mod/hotpot/lib.php
View
3  mod/hotpot/lib.php
@@ -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 = '';
Please sign in to comment.
Something went wrong with that request. Please try again.