fix: encode RSS uris with escape sequences before fetching (#14826)

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
Pinapelz 2024-10-28 05:04:46 -07:00 committed by GitHub
parent eb701f2ff4
commit 0472d43ee9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View file

@ -48,7 +48,7 @@ const fetching = ref(true);
const key = ref(0);
const tick = () => {
window.fetch(`/api/fetch-rss?url=${props.url}`, {}).then(res => {
window.fetch(`/api/fetch-rss?url=${encodeURIComponent(props.url)}`, {}).then(res => {
res.json().then((feed: Misskey.entities.FetchRssResponse) => {
if (props.shuffle) {
shuffle(feed.items);