From a95eae4452a98ec551c9820598d1e8fae9407714 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Sun, 24 Mar 2024 22:09:11 -0500 Subject: Fix entry editing --- src/clog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3