]> git.openstreetmap.org Git - osqa.git/commitdiff
Fixes the upload path problem.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 15 Jul 2010 10:39:42 +0000 (10:39 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 15 Jul 2010 10:39:42 +0000 (10:39 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@529 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/wmd/wmd.js

index 56ee30aea7c8931d94394e430759e947ca27cf40..957603e2090444ada547bfa5fcafcf181f8acbd5 100644 (file)
@@ -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;
                                }
                        }