mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Enhancement of the webui preference and of the quote escape for javascript
This commit is contained in:
@@ -270,6 +270,10 @@ void AbstractWebApplication::translateDocument(QString& data)
|
||||
// Remove keyboard shortcuts
|
||||
translation.replace(mnemonic, "");
|
||||
|
||||
// Use HTML code for quotes to prevent issues with JS
|
||||
translation.replace("'", "'");
|
||||
translation.replace("\"", """);
|
||||
|
||||
data.replace(i, regex.matchedLength(), translation);
|
||||
i += translation.length();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user