Skip to content

Commit

Permalink
fix(util): resolve path for icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Nov 9, 2024
1 parent 88f6104 commit e6881b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export const parse = async (options, pkg) => {
/* Remove special and control characters from app.name to mitigate potential path traversal. */
options.app.name = options.app.name.replace(/[<>:"/\\|?*\u0000-\u001F]/g, '');
}
options.app.icon = options.app.icon ?? undefined;
options.app.icon = path.resolve(options.app.icon) ?? undefined;

// TODO(#737): move this out
if (options.platform === 'linux') {
Expand Down

0 comments on commit e6881b8

Please sign in to comment.