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

Do not allow `<` in url.
Min RK 10 years ago
commit 7abc4e8825

@ -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>");
}

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

Loading…
Cancel
Save