Escape URIs replaced in messages
This commit is contained in:
parent
8fa145b012
commit
f5596ea121
@ -410,9 +410,10 @@ $(function() {
|
|||||||
});
|
});
|
||||||
text = escape(text);
|
text = escape(text);
|
||||||
for (var i in urls) {
|
for (var i in urls) {
|
||||||
|
var url = escape(urls[i]);
|
||||||
text = text.replace(
|
text = text.replace(
|
||||||
"{" + i + "}",
|
"{" + i + "}",
|
||||||
"<a href='" + urls[i].replace(/^www/, "//www") + "' target='_blank'>" + urls[i] + "</a>"
|
"<a href='" + url.replace(/^www/, "//www") + "' target='_blank'>" + url + "</a>"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return text;
|
return text;
|
||||||
|
Loading…
Reference in New Issue
Block a user