Update of /cvsroot/php-blog/serendipity/htmlarea
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6564/htmlarea
Modified Files:
Tag: branch_0_6
htmlarea.js
Log Message:
MFH
Index: htmlarea.js
===================================================================
RCS file: /cvsroot/php-blog/serendipity/htmlarea/htmlarea.js,v
retrieving revision 1.4.4.1
retrieving revision 1.4.4.2
diff -u -d -r1.4.4.1 -r1.4.4.2
--- htmlarea.js 13 Apr 2004 10:14:53 -0000 1.4.4.1
+++ htmlarea.js 18 Jun 2004 16:53:58 -0000 1.4.4.2
@@ -2056,16 +2056,16 @@
HTMLArea.prototype.stripBaseURL = function(string) {
var baseurl = this.config.baseURL;
-
// strip to last directory in case baseurl points to a file
baseurl = baseurl.replace(/[^\/]+$/, '');
+ _baseurl = baseurl;
var basere = new RegExp(baseurl);
- string = string.replace(basere, "/");
+ string = string.replace(basere, this.config.baseURL);
// strip host-part of URL which is added by MSIE to links relative to server root
baseurl = baseurl.replace(/^(https?:\/\/[^\/]+)(.*)$/, '$1');
basere = new RegExp(baseurl);
- return string.replace(basere, "");
+ return string.replace(basere, baseurl);
};
String.prototype.trim = function() {
|