1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

Fix only the first newline char is replaced

Must use regex to replace all instances of newline chars.
This commit is contained in:
Chocobo1 2019-01-04 00:55:04 +08:00
parent 9289b009b6
commit a0f3678163
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -1396,7 +1396,7 @@ var TorrentPeersTable = new Class({
// files
this.columns['files'].updateTd = function(td, row) {
td.innerHTML = escapeHtml(this.getRowValue(row, 0).replace('\n', ';'));
td.innerHTML = escapeHtml(this.getRowValue(row, 0).replace(/\n/g, ';'));
td.title = escapeHtml(this.getRowValue(row, 0));
};