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:
@@ -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>();
|
||||
|
Reference in New Issue
Block a user