diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-03-05 16:20:40 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-03-05 16:20:40 +0100 |
commit | 6e5531ae16d69087856ce7f174ba465bc759394c (patch) | |
tree | 510ab3208f045dbe574b53123c752b9d9349d5a3 /src/config.js | |
parent | Merge branch 'develop' of https://github.com/meetfranz/franz into develop (diff) | |
download | ferdium-app-6e5531ae16d69087856ce7f174ba465bc759394c.tar.gz ferdium-app-6e5531ae16d69087856ce7f174ba465bc759394c.tar.zst ferdium-app-6e5531ae16d69087856ce7f174ba465bc759394c.zip |
feat(App): Add security checks for external URLs
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.js b/src/config.js index a782ad667..479572edb 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -62,3 +62,9 @@ export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); | |||
62 | 62 | ||
63 | // Replacing app.asar is not beautiful but unforunately necessary | 63 | // Replacing app.asar is not beautiful but unforunately necessary |
64 | export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries')); | 64 | export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries')); |
65 | |||
66 | export const ALLOWED_PROTOCOLS = [ | ||
67 | 'https:', | ||
68 | 'http:', | ||
69 | 'ftp:', | ||
70 | ]; | ||