]> git.mjollnir.org Git - moodle.git/commitdiff
Added a line to disable this function:
authormoodler <moodler>
Mon, 17 May 2004 08:04:28 +0000 (08:04 +0000)
committermoodler <moodler>
Mon, 17 May 2004 08:04:28 +0000 (08:04 +0000)
   HTMLArea.prototype.stripBaseURL

since it seemed to be stripping parts of URLs in some cases (bug 1411)

lib/editor/htmlarea.php

index 9363998d089e558d0d6876635f4f024c128a1cac..45bc7f00ff56b1c4464614525317372b645379ac 100644 (file)
@@ -2165,14 +2165,15 @@ HTMLArea.getHTML = function(root, outputRoot, editor) {
 HTMLArea.prototype.stripBaseURL = function(string) {
     var baseurl = this.config.baseURL;
 
+    return string;    // Moodle addition to skip this whole routine
+
     // strip to last directory in case baseurl points to a file
     baseurl = baseurl.replace(/[^\/]+$/, '');
     var basere = new RegExp(baseurl);
     string = string.replace(basere, "");
 
     // strip host-part of URL which is added by MSIE to links relative to server root
-    // commented out for moodle
-    //baseurl = baseurl.replace(/^(https?:\/\/[^\/]+)(.*)$/, '$1');
+    baseurl = baseurl.replace(/^(https?:\/\/[^\/]+)(.*)$/, '$1');
     basere = new RegExp(baseurl);
     return string.replace(basere, "");
 };