aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorWilliam Wennerström <william@wstrm.dev>2020-12-07 16:38:05 +0100
committerWilliam Wennerström <william@wstrm.dev>2020-12-07 16:38:05 +0100
commit332dc87ca5948eb908d0e776eb0d33bacf166fbd (patch)
tree36ded9388e296fb720a784246a898a06de41f569 /src/command
parent5c5b4d7025546af386f7124924712bb0a6f95e7b (diff)
downloadprofani-tty-332dc87ca5948eb908d0e776eb0d33bacf166fbd.tar.gz
Fix wrong order of arguments for _url_http_method
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 024137d2..d2ec46ee 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -9105,7 +9105,7 @@ _url_external_method(const char* cmd_template, const char* url, const char* file
if (!call_external(argv, NULL, NULL)) {
cons_show_error("Unable to call external executable for url: check the logs for more information.");
} else {
- cons_show("URL '%s' has been called with '%s'.", cmd_template);
+ cons_show("URL '%s' has been called with '%s'.", url, cmd_template);
}
g_strfreev(argv);
@@ -9199,7 +9199,7 @@ cmd_url_save(ProfWin* window, const char* const command, gchar** args)
if (cmd_template == NULL) {
if (g_strcmp0(scheme, "http") == 0
|| g_strcmp0(scheme, "https") == 0) {
- _url_http_method(window, url, filename, cmd_template);
+ _url_http_method(window, cmd_template, url, filename);
#ifdef HAVE_OMEMO
} else if (g_strcmp0(scheme, "aesgcm") == 0) {
_url_aesgcm_method(window, cmd_template, url, filename);