Skip to content

Commit

Permalink
URL encode settings redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Orlita committed Oct 12, 2021
1 parent b6aed6d commit c82f834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Untrusted Types for DevTools",
"description": "Abusing Trusted Types to discover XSS sinks.",
"version": "1.0",
"version": "1.1.1",
"manifest_version": 2,
"icons": {
"128": "icons/icon128.png"
Expand Down
2 changes: 1 addition & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ updateNewestSettings();
// dynamically return current settings
chrome.webRequest.onBeforeRequest.addListener(
() => ({
redirectUrl: 'data:application/json,' + JSON.stringify(settings)
redirectUrl: 'data:application/json,' + encodeURIComponent(JSON.stringify(settings))
}),
{
urls: [chrome.runtime.getURL('settings.json')]
Expand Down

0 comments on commit c82f834

Please sign in to comment.