diff options
Diffstat (limited to 'scheduler/client.c')
-rw-r--r-- | scheduler/client.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scheduler/client.c b/scheduler/client.c index 0f088bd18..1e2f55d8d 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -1245,6 +1245,9 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */ * Protect against malicious users! */ + cupsdLogMessage(CUPSD_LOG_ERROR, + "Request for non-absolute resource \"%s\"!", con->uri); + if (!cupsdSendError(con, HTTP_FORBIDDEN, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); @@ -1449,10 +1452,13 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */ strlen(con->uri) == 11))) { /* - * GET can only be done to configuration files under + * GET can only be done to configuration files directly under * /admin/conf... */ + cupsdLogMessage(CUPSD_LOG_ERROR, + "Request for subdirectory \"%s\"!", con->uri); + if (!cupsdSendError(con, HTTP_FORBIDDEN, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); @@ -1697,6 +1703,9 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */ * /admin/conf... */ + cupsdLogMessage(CUPSD_LOG_ERROR, + "Request for subdirectory \"%s\"!", con->uri); + if (!cupsdSendError(con, HTTP_FORBIDDEN, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); @@ -1851,6 +1860,9 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */ * /admin/conf... */ + cupsdLogMessage(CUPSD_LOG_ERROR, + "Request for subdirectory \"%s\"!", con->uri); + if (!cupsdSendError(con, HTTP_FORBIDDEN, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); |