summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index f10106f..3dce6a4 100644
--- a/html.c
+++ b/html.c
@@ -4542,7 +4542,6 @@ int html_get_handler(const xs_dict *req, const char *q_path,
4542 4542
4543 if (xs_type(login) == XSTYPE_STRING && xs_type(content) == XSTYPE_STRING) { 4543 if (xs_type(login) == XSTYPE_STRING && xs_type(content) == XSTYPE_STRING) {
4544 xs *b64 = xs_base64_enc(content, strlen(content)); 4544 xs *b64 = xs_base64_enc(content, strlen(content));
4545
4546 srv_log(xs_fmt("share-bridge for user '%s'", login)); 4545 srv_log(xs_fmt("share-bridge for user '%s'", login));
4547 4546
4548 *body = xs_fmt("%s/%s/share?content=%s", srv_baseurl, login, b64); 4547 *body = xs_fmt("%s/%s/share?content=%s", srv_baseurl, login, b64);
@@ -5191,8 +5190,9 @@ int html_get_handler(const xs_dict *req, const char *q_path,
5191 } 5190 }
5192 else { 5191 else {
5193 const char *b64 = xs_dict_get(q_vars, "content"); 5192 const char *b64 = xs_dict_get(q_vars, "content");
5193 xs *b64_2 = xs_replace(b64, " ", "+");
5194 int sz; 5194 int sz;
5195 xs *content = xs_base64_dec(b64, &sz); 5195 xs *content = xs_base64_dec(b64_2, &sz);
5196 xs *msg = msg_note(&snac, content, NULL, NULL, NULL, 0, NULL, NULL); 5196 xs *msg = msg_note(&snac, content, NULL, NULL, NULL, 0, NULL, NULL);
5197 xs *c_msg = msg_create(&snac, msg); 5197 xs *c_msg = msg_create(&snac, msg);
5198 5198