Skip to content

Commit

Permalink
add "mp3" (used by DewPlayer) to the list of query string parameters …
Browse files Browse the repository at this point in the history
…to search for when converting relative urls to absolute urls
  • Loading branch information
gbateson committed Mar 10, 2008
1 parent 70efd67 commit 42e5c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/hotpot/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ function hotpot_convert_relative_url($baseurl, $reference, $opentag, $url, $clos
}

if ($query) {
$search = '#'.'(file|src|thesound)='."([^&]+)".'#ise';
$search = '#'.'(file|src|thesound|mp3)='."([^&]+)".'#ise';
$replace = "'\\1='.hotpot_convert_url('".$baseurl."','".$reference."','\\2')";
$query = preg_replace($search, $replace, $query);
}
Expand Down

0 comments on commit 42e5c3d

Please sign in to comment.