1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-12 07:48:04 +00:00

Merge pull request #14432 from brvphoenix/rss

WebUI: Properly decode strings
This commit is contained in:
Vladimir Golovnev 2021-02-25 12:58:29 +03:00 committed by GitHub
commit 7373b60522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@
'use strict';
window.addEvent('domready', () => {
const paths = decodeURIComponent(new URI().getData('paths')).split('|');
const paths = new URI().getData('paths').split('|');
$('cancelBtn').focus();
$('cancelBtn').addEvent('click', (e) => {
new Event(e).stop();

View File

@ -11,7 +11,7 @@
'use strict';
window.addEvent('domready', () => {
const rules = decodeURIComponent(new URI().getData('rules')).split('|');
const rules = new URI().getData('rules').split('|');
$('cancelBtn').focus();
$('cancelBtn').addEvent('click', (e) => {

View File

@ -11,7 +11,7 @@
'use strict';
window.addEvent('domready', () => {
const rules = decodeURIComponent(new URI().getData('rules')).split('|');
const rules = new URI().getData('rules').split('|');
$('cancelBtn').focus();
$('cancelBtn').addEvent('click', (e) => {

View File

@ -30,7 +30,7 @@
}).activate();
window.addEvent('domready', () => {
$('feedURL').focus();
const path = decodeURIComponent(new URI().getData('path'));
const path = new URI().getData('path');
$('submitButton').addEvent('click', (e) => {
new Event(e).stop();
// check field

View File

@ -30,7 +30,7 @@
}).activate();
window.addEvent('domready', () => {
$('folderName').focus();
const path = decodeURIComponent(new URI().getData('path'));
const path = new URI().getData('path');
$('submitButton').addEvent('click', (e) => {
new Event(e).stop();
// check field

View File

@ -29,7 +29,7 @@
}
}).activate();
window.addEvent('domready', () => {
const oldPath = decodeURIComponent(new URI().getData('oldPath'));
const oldPath = new URI().getData('oldPath');
$('rename').value = oldPath;
$('rename').focus();

View File

@ -29,7 +29,7 @@
}
}).activate();
window.addEvent('domready', () => {
const oldName = decodeURIComponent(new URI().getData('rule'));
const oldName = new URI().getData('rule');
$('rename').value = oldName;
$('rename').focus();