aboutsummaryrefslogtreecommitdiff
path: root/src/clog.c
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2024-03-24 22:09:11 -0500
committerMichael McVady <femtonaut@gmail.com>2024-03-24 22:09:17 -0500
commita95eae4452a98ec551c9820598d1e8fae9407714 (patch)
tree8dda1c16ac6638bfcdfc01ef97585bfbc747439c /src/clog.c
parente1846d4c21165e7d2137a11152e4a8f171c90324 (diff)
Fix entry editing
Diffstat (limited to 'src/clog.c')
-rw-r--r--src/clog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clog.c b/src/clog.c
index d226495..f82c875 100644
--- a/src/clog.c
+++ b/src/clog.c
@@ -361,7 +361,6 @@ out: ;
return KORE_RESULT_OK;
}
-
int edit_entry(struct http_request *req) {
int err = 0;
@@ -457,6 +456,7 @@ int update_entry(struct http_request *req) {
}
id = kore_strdup(req->path + strlen("/entries/"));
+ id[strlen(id) - strlen("/edit")] = '\0';
kore_log(LOG_DEBUG, "updating entry %s.", id);
err = validate_uuid(id);