aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);