Browse Source

Merge pull request #14432 from brvphoenix/rss

WebUI: Properly decode strings
adaptive-webui-19844
Vladimir Golovnev 4 years ago committed by GitHub
parent
commit
7373b60522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/webui/www/private/confirmfeeddeletion.html
  2. 2
      src/webui/www/private/confirmruleclear.html
  3. 2
      src/webui/www/private/confirmruledeletion.html
  4. 2
      src/webui/www/private/newfeed.html
  5. 2
      src/webui/www/private/newfolder.html
  6. 2
      src/webui/www/private/rename_feed.html
  7. 2
      src/webui/www/private/rename_rule.html

2
src/webui/www/private/confirmfeeddeletion.html

@ -11,7 +11,7 @@ @@ -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();

2
src/webui/www/private/confirmruleclear.html

@ -11,7 +11,7 @@ @@ -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) => {

2
src/webui/www/private/confirmruledeletion.html

@ -11,7 +11,7 @@ @@ -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) => {

2
src/webui/www/private/newfeed.html

@ -30,7 +30,7 @@ @@ -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

2
src/webui/www/private/newfolder.html

@ -30,7 +30,7 @@ @@ -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

2
src/webui/www/private/rename_feed.html

@ -29,7 +29,7 @@ @@ -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();

2
src/webui/www/private/rename_rule.html

@ -29,7 +29,7 @@ @@ -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();

Loading…
Cancel
Save