From 1a3311389c99c601c42d2b0caffe458efac5686c Mon Sep 17 00:00:00 2001 From: hernani Date: Thu, 15 Jul 2010 10:39:42 +0000 Subject: [PATCH] Fixes the upload path problem. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@529 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/media/js/wmd/wmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/skins/default/media/js/wmd/wmd.js b/forum/skins/default/media/js/wmd/wmd.js index 56ee30a..957603e 100644 --- a/forum/skins/default/media/js/wmd/wmd.js +++ b/forum/skins/default/media/js/wmd/wmd.js @@ -297,7 +297,7 @@ Attacklab.wmdBase = function(){ text = text.replace('http://https://', 'https://'); text = text.replace('http://ftp://', 'ftp://'); - if (text.indexOf('http://') === -1 && text.indexOf('ftp://') === -1) { + if (text.indexOf('http://') === -1 && text.indexOf('ftp://') === -1 && text.indexOf('/') != 0) { text = 'http://' + text; } } -- 2.39.5