Merge pull request #910 from Carreau/fix-#904

Do not allow `<` in url.
This commit is contained in:
Min RK 2015-12-30 11:40:29 +01:00
commit 7abc4e8825
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ define([
// Locate any URLs and convert them to a anchor tag
function autoLinkUrls(txt) {
return txt.replace(/(^|\s)(https?|ftp)(:[^'">\s]+)/gi,
return txt.replace(/(^|\s)(https?|ftp)(:[^'"<>\s]+)/gi,
"$1<a target=\"_blank\" href=\"$2$3\">$2$3</a>");
}

View File

@ -684,7 +684,7 @@ define([
img.addClass('unconfined');
}
});
};
}
var set_width_height = function (img, md, mime) {
/**