}
$iframe = false;
-
++
+ $param = '<param name="src" value="'.$fullurl.'" />';
-
++
// IE can not embed stuff properly if stored on different server
// that is why we use iframe instead, unfortunately this tag does not validate
// in xhtml strict mode
if ($mimetype === 'text/html' and check_browser_version('MSIE', 5)) {
++ // The param tag needs to be removed to avoid trouble in IE.
+ $param = '';
if (preg_match('(^https?://[^/]*)', $fullurl, $matches)) {
if (strpos($CFG->wwwroot, $matches[0]) !== 0) {
$iframe = true;