From: hernani Date: Thu, 15 Jul 2010 10:39:42 +0000 (+0000) Subject: Fixes the upload path problem. X-Git-Tag: live~605 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/1a3311389c99c601c42d2b0caffe458efac5686c Fixes the upload path problem. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@529 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- 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; } }