summaryrefslogtreecommitdiff
path: root/src/sp_upload_validation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_upload_validation.c')
-rw-r--r--src/sp_upload_validation.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sp_upload_validation.c b/src/sp_upload_validation.c
index 4ee7bd7..f3ae311 100644
--- a/src/sp_upload_validation.c
+++ b/src/sp_upload_validation.c
@@ -13,10 +13,11 @@ 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_simulation("upload_validation", 16 sp_log_simulation(
17 "The upload validation doesn't work for now on Windows yet, " 17 "upload_validation",
18 "see https://github.com/jvoisin/snuffleupagus/issues/248 for " 18 "The upload validation doesn't work for now on Windows yet, "
19 "details."); 19 "see https://github.com/jvoisin/snuffleupagus/issues/248 for "
20 "details.");
20 return SUCCESS; 21 return SUCCESS;
21} 22}
22 23
@@ -91,8 +92,8 @@ int sp_rfc1867_callback(unsigned int event, void *event_data, void **extra) {
91 char *uri = getenv("REQUEST_URI"); 92 char *uri = getenv("REQUEST_URI");
92 int sim = config_upload->simulation; 93 int sim = config_upload->simulation;
93 sp_log_auto("upload_validation", sim, 94 sp_log_auto("upload_validation", sim,
94 "The upload of %s on %s was rejected.", 95 "The upload of %s on %s was rejected.", filename,
95 filename, uri ? uri : "?"); 96 uri ? uri : "?");
96 } 97 }
97 } 98 }
98 ZEND_HASH_FOREACH_END(); 99 ZEND_HASH_FOREACH_END();