From: moodler <moodler>
Date: Tue, 10 Aug 2004 09:10:28 +0000 (+0000)
Subject: Don't clean external files
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=40b83bffaa80e62af368509145758b984d996014;p=moodle.git

Don't clean external files
---

diff --git a/mod/resource/fetch.php b/mod/resource/fetch.php
index cbd9ebd024..c0f570b8c9 100644
--- a/mod/resource/fetch.php
+++ b/mod/resource/fetch.php
@@ -29,6 +29,7 @@
 
     $content = resource_fetch_remote_file($cm, $url);
 
-    echo format_text($content->results, FORMAT_HTML);
+    $formatoptions->noclean = true;
+    echo format_text($content->results, FORMAT_HTML, $formatoptions, $course->id);
 
 ?>