Permalink
Browse files

when search for media players, remove requirment for <object> tag to …

…contain a space, and make closing </A> tag lowercase
  • Loading branch information...
1 parent 3fca714 commit cd0de43baff616106fb3743e5e8830cdf5503aa3 gbateson committed Mar 30, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/hotpot/lib.php
View
@@ -1902,10 +1902,10 @@ function adjust_media_urls() {
$param_url = "/{$tagopen}param{$space}name=$quote(?:movie|src|url)$quote{$space}value=$quote($filepath)$quote.*?$tagclose/is";
// pattern to match <a> tags which link to multimedia files
- $link_url = "/{$tagopen}a{$space}href=$quote($filepath)$quote.*?$tagclose.*?$tagreopen\/A$tagclose/is";
+ $link_url = "/{$tagopen}a{$space}href=$quote($filepath)$quote.*?$tagclose.*?$tagreopen\/a$tagclose/is";
// extract <object> tags
- preg_match_all("/{$tagopen}object\s.*?{$tagclose}(.*?)(?:{$tagreopen}\/object{$tagclose})+/is", $this->html, $objects);
+ preg_match_all("/{$tagopen}object.*?{$tagclose}(.*?)(?:{$tagreopen}\/object{$tagclose})+/is", $this->html, $objects);
$i_max = count($objects[0]);
for ($i=0; $i<$i_max; $i++) {

0 comments on commit cd0de43

Please sign in to comment.