Do not allow `<` in url.

fix #904
Matthias Bussonnier 10 years ago
parent da235aac27
commit ef0f3b9c0e

@ -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