Skip to content

Commit

Permalink
Merge pull request #736 from DanielXMoore/encode-uri
Browse files Browse the repository at this point in the history
properly encoding js import source
  • Loading branch information
STRd6 authored Sep 17, 2023
2 parents 19233aa + 0ed02c0 commit 851bd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/config.civet
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function loadConfig(path: string)
let exports

try
exports = await import `data:text/javascript,${js}`
exports = await import `data:text/javascript,${ encodeURIComponent js }`
catch e
console.error "Error loading config file", path, e

Expand Down

0 comments on commit 851bd8a

Please sign in to comment.