diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1015,11 +1015,13 @@ iBool handleCommand_App(const char *cmd) { | |||
1015 | } | 1015 | } |
1016 | else if (equal_Command(cmd, "open")) { | 1016 | else if (equal_Command(cmd, "open")) { |
1017 | const iString *url = collectNewCStr_String(suffixPtr_Command(cmd, "url")); | 1017 | const iString *url = collectNewCStr_String(suffixPtr_Command(cmd, "url")); |
1018 | const iBool noProxy = argLabel_Command(cmd, "noproxy"); | ||
1018 | iUrl parts; | 1019 | iUrl parts; |
1019 | init_Url(&parts, url); | 1020 | init_Url(&parts, url); |
1020 | if (equalCase_Rangecc(parts.scheme, "mailto") || | 1021 | if (equalCase_Rangecc(parts.scheme, "mailto") || |
1021 | (isEmpty_String(&d->prefs.httpProxy) && (equalCase_Rangecc(parts.scheme, "http") || | 1022 | ((noProxy || isEmpty_String(&d->prefs.httpProxy)) && |
1022 | equalCase_Rangecc(parts.scheme, "https")))) { | 1023 | (equalCase_Rangecc(parts.scheme, "http") || |
1024 | equalCase_Rangecc(parts.scheme, "https")))) { | ||
1023 | openInDefaultBrowser_App(url); | 1025 | openInDefaultBrowser_App(url); |
1024 | return iTrue; | 1026 | return iTrue; |
1025 | } | 1027 | } |