diff options
| author | xXx-caillou-xXx | 2018-08-28 14:24:29 +0200 |
|---|---|---|
| committer | jvoisin | 2018-08-28 12:24:29 +0000 |
| commit | aa5d6895d0ac8c6ea050a8ea55e2f8a39ddfe365 (patch) | |
| tree | c640e50ab007bae3a2fd55ca05bc13c73e293c69 /src/sp_upload_validation.c | |
| parent | eff2c658d37108020215f838d4c47c176ec3e050 (diff) | |
Use php's logging functions
This commit replace our usage of `php_log_err` with `zend_error`. This should
allow administrators to display errors in the webpage, should they want to;
and to properly manipulate the verbosity's level.
This should close #217
Diffstat (limited to 'src/sp_upload_validation.c')
| -rw-r--r-- | src/sp_upload_validation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_upload_validation.c b/src/sp_upload_validation.c index a8a1340..c079e41 100644 --- a/src/sp_upload_validation.c +++ b/src/sp_upload_validation.c | |||
| @@ -63,7 +63,7 @@ int sp_rfc1867_callback(unsigned int event, void *event_data, void **extra) { | |||
| 63 | ZSTR_VAL( | 63 | ZSTR_VAL( |
| 64 | SNUFFLEUPAGUS_G(config).config_upload_validation->script), | 64 | SNUFFLEUPAGUS_G(config).config_upload_validation->script), |
| 65 | cmd, env) == -1) { | 65 | cmd, env) == -1) { |
| 66 | sp_log_err( | 66 | sp_log_warn( |
| 67 | "upload_validation", "Could not call '%s' : %s", | 67 | "upload_validation", "Could not call '%s' : %s", |
| 68 | ZSTR_VAL( | 68 | ZSTR_VAL( |
| 69 | SNUFFLEUPAGUS_G(config).config_upload_validation->script), | 69 | SNUFFLEUPAGUS_G(config).config_upload_validation->script), |
| @@ -90,7 +90,7 @@ int sp_rfc1867_callback(unsigned int event, void *event_data, void **extra) { | |||
| 90 | "The upload of %s on %s was rejected.", filename, | 90 | "The upload of %s on %s was rejected.", filename, |
| 91 | uri ? uri : "?"); | 91 | uri ? uri : "?"); |
| 92 | if (!SNUFFLEUPAGUS_G(config).config_upload_validation->simulation) { | 92 | if (!SNUFFLEUPAGUS_G(config).config_upload_validation->simulation) { |
| 93 | zend_bailout(); | 93 | sp_terminate(); |
| 94 | } | 94 | } |
| 95 | } | 95 | } |
| 96 | } | 96 | } |
