when search for media players, remove requirment for <object> tag to contain a space, and make closing </A> tag lowercase

This commit is contained in:
gbateson
2009-03-30 07:13:04 +00:00
parent 9a33c51dec
commit 924df0e6c8
+2 -2
View File
@@ -1736,10 +1736,10 @@ class hotpot_xml_quiz extends hotpot_xml_tree {
$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++) {