mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Fix only the first newline char is replaced
Must use regex to replace all instances of newline chars.
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user