mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	don't double-url-encode rss urls
`url.searchParams.set()` already encodes the values passed!
(this is a partial revert of 0472d43ee9,
the change in `statusbar-rss.vue` was correct)
			
			
This commit is contained in:
		
							parent
							
								
									b8e361e03c
								
							
						
					
					
						commit
						b9e03339fd
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -70,7 +70,7 @@ const items = computed(() => rawItems.value.slice(0, widgetProps.maxEntries));
 | 
				
			||||||
const fetching = ref(true);
 | 
					const fetching = ref(true);
 | 
				
			||||||
const fetchEndpoint = computed(() => {
 | 
					const fetchEndpoint = computed(() => {
 | 
				
			||||||
	const url = new URL('/api/fetch-rss', base);
 | 
						const url = new URL('/api/fetch-rss', base);
 | 
				
			||||||
	url.searchParams.set('url', encodeURIComponent(widgetProps.url));
 | 
						url.searchParams.set('url', widgetProps.url);
 | 
				
			||||||
	return url;
 | 
						return url;
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
const intervalClear = ref<(() => void) | undefined>();
 | 
					const intervalClear = ref<(() => void) | undefined>();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -99,7 +99,7 @@ const items = computed(() => {
 | 
				
			||||||
const fetching = ref(true);
 | 
					const fetching = ref(true);
 | 
				
			||||||
const fetchEndpoint = computed(() => {
 | 
					const fetchEndpoint = computed(() => {
 | 
				
			||||||
	const url = new URL('/api/fetch-rss', base);
 | 
						const url = new URL('/api/fetch-rss', base);
 | 
				
			||||||
	url.searchParams.set('url', encodeURIComponent(widgetProps.url));
 | 
						url.searchParams.set('url', widgetProps.url);
 | 
				
			||||||
	return url;
 | 
						return url;
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
const intervalClear = ref<(() => void) | undefined>();
 | 
					const intervalClear = ref<(() => void) | undefined>();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue