pay, decodepay: handle descriptions with " inside them where we use hashed descriptions.

This means we need to push off requring this for another full deprecation cycle!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: JSON-RPC: `pay` and `decodepay` with description now correctly handle JSON escapes (e.g " inside description)
This commit is contained in:
Rusty Russell
2023-06-15 14:52:50 +09:30
parent 7a57f7024c
commit 92ff0fd8c0
3 changed files with 16 additions and 2 deletions

View File

@@ -1008,7 +1008,7 @@ static struct command_result *json_pay(struct command *cmd,
p_opt("localinvreqid", param_sha256, &local_invreq_id),
p_opt("exclude", param_route_exclusion_array, &exclusions),
p_opt("maxfee", param_msat, &maxfee),
p_opt("description", param_string, &description),
p_opt("description", param_escaped_string, &description),
#if DEVELOPER
p_opt_def("use_shadow", param_bool, &use_shadow, true),
#endif