diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-18 13:07:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-10-18 13:07:23 +0000 |
commit | 1a7e3d00588725da3d8764fa9d624bc8611be070 (patch) | |
tree | 65d28b52bd1d4ccdbeb418d4d681b1999ed46b7a /src/libtipidee/tipidee_log_request.c | |
parent | 24fb88dbb023ae08adc9989bf19e0c6c569a6607 (diff) | |
download | tipidee-1a7e3d00588725da3d8764fa9d624bc8611be070.tar.xz |
Add infrastructure for custom error files
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_log_request.c')
-rw-r--r-- | src/libtipidee/tipidee_log_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtipidee/tipidee_log_request.c b/src/libtipidee/tipidee_log_request.c index a50169d..d633f0b 100644 --- a/src/libtipidee/tipidee_log_request.c +++ b/src/libtipidee/tipidee_log_request.c @@ -17,7 +17,7 @@ void tipidee_log_request (uint32_t v, tipidee_rql const *rql, tipidee_headers co size_t start = sa->len ; /* assert: not zero */ size_t refpos = 0, uapos = 0 ; if (!(v & TIPIDEE_LOG_REQUEST)) return ; - if (!string_quotes(sa, rql->uri.path)) goto eerr ; + if (!string_quotes(sa, rql->uri.path) || !stralloc_0(sa)) goto eerr ; if (v & TIPIDEE_LOG_REFERRER) { char const *x = tipidee_headers_search(hdr, "Referrer") ; |