diff options
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_funcs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 55bef3d1..7d921ea3 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9114,8 +9114,8 @@ cmd_url_open(ProfWin* window, const char* const command, gchar** args) gchar* suffix_cmd = g_strdup(suffix_cmd_pref[1]); g_strfreev(suffix_cmd_pref); - gchar* scheme = g_uri_parse_scheme(args[1]); - if (0 == g_strcmp0(scheme, "aesgcm")) { + gchar *scheme = g_uri_parse_scheme(args[1]); + if( 0 == g_strcmp0(scheme, OMEMO_AESGCM_URL_SCHEME)) { require_save = true; } g_free(scheme); @@ -9221,7 +9221,8 @@ cmd_url_save(ProfWin* window, const char* const command, gchar** args) if (0 == g_strcmp0(scheme, "http") || 0 == g_strcmp0(scheme, "https") - || 0 == g_strcmp0(scheme, "aesgcm")) { + || 0 == g_strcmp0(scheme, OMEMO_AESGCM_URL_SCHEME) + ) { scheme_cmd = prefs_get_string_with_option(PREF_URL_SAVE_CMD, scheme); } |