summaryrefslogtreecommitdiff
path: root/src/sp_upload_validation.c
diff options
context:
space:
mode:
authorGiovanni2020-07-22 09:28:42 +0200
committerGitHub2020-07-22 09:28:42 +0200
commite8d3cd9b26f0b4d660e424f2657f11bbc01eb171 (patch)
treefa2b312815be8b50afae7fd0447fe891ab19a487 /src/sp_upload_validation.c
parent5a655dda1c3b666adf552fd50f5ebf5f4cbd3ce7 (diff)
refactoring sp_log_* (#340)
Co-authored-by: Giovanni Dante Grazioli <giovanni.dantegrazioli@nbs-system.com>
Diffstat (limited to 'src/sp_upload_validation.c')
-rw-r--r--src/sp_upload_validation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp_upload_validation.c b/src/sp_upload_validation.c
index 54b0481..4ee7bd7 100644
--- a/src/sp_upload_validation.c
+++ b/src/sp_upload_validation.c
@@ -13,7 +13,7 @@ int sp_rfc1867_callback(unsigned int event, void *event_data, void **extra);
13 13
14int sp_rfc1867_callback_win(unsigned int event, void *event_data, 14int sp_rfc1867_callback_win(unsigned int event, void *event_data,
15 void **extra) { 15 void **extra) {
16 sp_log_msg("upload_validation", SP_LOG_SIMULATION, 16 sp_log_simulation("upload_validation",
17 "The upload validation doesn't work for now on Windows yet, " 17 "The upload validation doesn't work for now on Windows yet, "
18 "see https://github.com/jvoisin/snuffleupagus/issues/248 for " 18 "see https://github.com/jvoisin/snuffleupagus/issues/248 for "
19 "details."); 19 "details.");
@@ -90,9 +90,9 @@ int sp_rfc1867_callback(unsigned int event, void *event_data, void **extra) {
90 if (WEXITSTATUS(waitstatus) != 0) { // Nope 90 if (WEXITSTATUS(waitstatus) != 0) { // Nope
91 char *uri = getenv("REQUEST_URI"); 91 char *uri = getenv("REQUEST_URI");
92 int sim = config_upload->simulation; 92 int sim = config_upload->simulation;
93 sp_log_msg("upload_validation", sim ? SP_LOG_SIMULATION : SP_LOG_DROP, 93 sp_log_auto("upload_validation", sim,
94 "The upload of %s on %s was rejected.", filename, 94 "The upload of %s on %s was rejected.",
95 uri ? uri : "?"); 95 filename, uri ? uri : "?");
96 } 96 }
97 } 97 }
98 ZEND_HASH_FOREACH_END(); 98 ZEND_HASH_FOREACH_END();