diff options
-rw-r--r-- | src/clog.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |