Security fix for path-traversal attack (#48)
Additionally: - Make expense and budget modal "reset" once closed, saved, or deleted. - Make manifest icons dark - Budgets in small screens should be full-screen - Minor code cleanup Fixes #48
This commit is contained in:
@@ -195,13 +195,12 @@ export default function Feeds({ initialFeeds }: FeedsProps) {
|
||||
|
||||
isExporting.value = true;
|
||||
|
||||
const fileName = ['feeds-', new Date().toISOString().substring(0, 19).replace(/:/g, '-'), '.opml']
|
||||
.join('');
|
||||
const fileName = `feeds-${new Date().toISOString().substring(0, 19).replace(/:/g, '-')}.opml`;
|
||||
|
||||
const exportContents = formatNewsFeedsToOpml([...feeds.peek()]);
|
||||
|
||||
// Add content-type
|
||||
const xmlContent = ['data:application/xml; charset=utf-8,', exportContents].join('');
|
||||
const xmlContent = `data:application/xml; charset=utf-8,${exportContents}`;
|
||||
|
||||
// Download the file
|
||||
const data = encodeURI(xmlContent);
|
||||
|
||||
Reference in New Issue
Block a user