mu: fix quoting/unquoting parameters
This commit is contained in:
@ -557,7 +557,6 @@ read_val (const char *str, const char **endval, GError **err)
|
|||||||
}
|
}
|
||||||
} else if (*cur == '"') {
|
} else if (*cur == '"') {
|
||||||
quoted = !quoted;
|
quoted = !quoted;
|
||||||
g_string_append_c (gstr, *cur);
|
|
||||||
continue;
|
continue;
|
||||||
} else if (isblank(*cur) && !quoted)
|
} else if (isblank(*cur) && !quoted)
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -235,7 +235,7 @@ The server output is as follows:
|
|||||||
existing quotation. In particular, backslashes and
|
existing quotation. In particular, backslashes and
|
||||||
double-quotes."
|
double-quotes."
|
||||||
(let ((esc (replace-regexp-in-string "\\\\" "\\\\\\\\" str)))
|
(let ((esc (replace-regexp-in-string "\\\\" "\\\\\\\\" str)))
|
||||||
(format "%s" (replace-regexp-in-string "\"" "\\\\\"" esc))))
|
(format "\"%s\"" (replace-regexp-in-string "\"" "\\\\\"" esc))))
|
||||||
|
|
||||||
|
|
||||||
(defun mu4e~proc-send-command (frm &rest args)
|
(defun mu4e~proc-send-command (frm &rest args)
|
||||||
|
|||||||
Reference in New Issue
Block a user