fix #552
This commit is contained in:
@@ -2877,7 +2877,9 @@ else
|
||||
else {
|
||||
// Fixes common pasting errors.
|
||||
text = text.replace(/^http:\/\/(https?|ftp):\/\//, '$1://');
|
||||
if (!/^(?:https?|ftp):\/\//.test(text))
|
||||
|
||||
// fix issue #552
|
||||
if (!/^(?:https?|ftp):\/\//.test(text) && !/^[_a-z0-9-]+:/i.test(text))
|
||||
text = 'http://' + text;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user