mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-01-27 23:24:28 +00:00
Merge pull request #22 from dryabov/master
fix incorrect processing of urls with ampersands
This commit is contained in:
commit
7496e3c240
@ -183,6 +183,7 @@ function htmlFormatMsg( msg, output, mentions ) {
|
|||||||
var url;
|
var url;
|
||||||
if( space != -1 ) url = tmp.substring(0,space); else url = tmp;
|
if( space != -1 ) url = tmp.substring(0,space); else url = tmp;
|
||||||
if( url.length ) {
|
if( url.length ) {
|
||||||
|
msg = tmp.substr(String(url).length);
|
||||||
url = url.replace('&', '&');
|
url = url.replace('&', '&');
|
||||||
var extLinkTemplate = $("#external-page-link-template").clone(true);
|
var extLinkTemplate = $("#external-page-link-template").clone(true);
|
||||||
extLinkTemplate.removeAttr("id");
|
extLinkTemplate.removeAttr("id");
|
||||||
@ -190,7 +191,6 @@ function htmlFormatMsg( msg, output, mentions ) {
|
|||||||
extLinkTemplate.html(url);
|
extLinkTemplate.html(url);
|
||||||
extLinkTemplate.attr("title",url);
|
extLinkTemplate.attr("title",url);
|
||||||
output.append(extLinkTemplate);
|
output.append(extLinkTemplate);
|
||||||
msg = tmp.substr(String(url).length);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user