diff options
author | Michael McVady <femtonaut@gmail.com> | 2024-03-24 22:09:11 -0500 |
---|---|---|
committer | Michael McVady <femtonaut@gmail.com> | 2024-03-24 22:09:17 -0500 |
commit | a95eae4452a98ec551c9820598d1e8fae9407714 (patch) | |
tree | 8dda1c16ac6638bfcdfc01ef97585bfbc747439c | |
parent | e1846d4c21165e7d2137a11152e4a8f171c90324 (diff) |
Fix entry editing
-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); |