Encode URI components for feed with query params

This fixes #10 and fixes #15.
This commit is contained in:
Darius Kazemi 2019-03-10 21:37:08 -07:00
parent 6039a793c4
commit e0dbc536dc

View file

@ -49,7 +49,7 @@
// https://bots.tinysubversions.com/api/convert/?feed=https://toomuchnotenough.site/feed.xml&username=tmne
function submit() {
let domain = document.domain;
let feed = document.querySelector('#feed').value;
let feed = encodeURIComponent(document.querySelector('#feed').value);
let username = document.querySelector('#username').value;
let out = document.querySelector('#out');
fetch(`/api/convert/?feed=${feed}&username=${username}`)