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
4 changed files with 4 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ const items = computed(() => rawItems.value.slice(0, widgetProps.maxEntries));
const fetching = ref(true);
const fetchEndpoint = computed(() => {
const url = new URL('/api/fetch-rss', base);
url.searchParams.set('url', widgetProps.url);
url.searchParams.set('url', encodeURIComponent(widgetProps.url));
return url;
});
const intervalClear = ref<(() => void) | undefined>();