[FIX/WIP] Try escaping room IDs

First attempt at dealing with #20
This commit is contained in:
lda 2025-02-14 19:10:26 +00:00
commit 3bef6afa5d

View file

@ -47,11 +47,13 @@ ASSend(const ParseeConfig *conf, char *id, char *user, char *type, HashMap *c, u
ts_str = TSToStr(ts);
txn = StrRandom(16);
id = HttpUrlEncode(id);
path = StrConcat(11,
"/_matrix/client/v3/rooms/",
id, "/send/", type, "/", txn, "?",
"user_id=", user, "&ts=", ts_str
);
Free(id);
Free(txn);
Free(ts_str);