mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Enhancement of the webui preference and of the quote escape for javascript
This commit is contained in:
parent
80b526d1af
commit
d7ac142885
3 changed files with 16 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue