mirror of
https://github.com/typecho/typecho.git
synced 2025-01-16 12:09:41 +01:00
parent
6ddf1c1a23
commit
23724c4193
File diff suppressed because one or more lines are too long
@ -2882,8 +2882,8 @@ else
|
||||
text = text.replace(/^http:\/\/(https?|ftp):\/\//, '$1://');
|
||||
|
||||
// fix issue #552
|
||||
if (!/^(?:https?|ftp):\/\//.test(text) && !/^[_a-z0-9-]+:/i.test(text))
|
||||
text = 'http://' + text;
|
||||
// if (!/^(?:https?|ftp):\/\//.test(text) && !/^[_a-z0-9-]+:/i.test(text))
|
||||
// text = 'http://' + text;
|
||||
}
|
||||
|
||||
dialog.parentNode.removeChild(dialog);
|
||||
|
Loading…
x
Reference in New Issue
Block a user