encode spaces in to be open url on MacOS;
@@ -110,7 +110,14 @@ char* gen_parseResponse(char* res, const struct arguments* arguments) {
}
secFree(redirect_uri);
if (!arguments->noUrlCall) {
+#ifdef __APPLE__
+ char* uri = strreplace(_uri, " ", "%20");
+ _uri = uri;
+#endif
char* cmd = oidc_sprintf(URL_OPENER " \"%s\"", _uri);
+#ifdef __APPLE__
+ secFree(uri);
+#endif
if (system(cmd) != 0) {
logger(NOTICE, "Cannot open url");
}
