diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/rfc1867.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c index 4ec8d3196f..e86ccb416a 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -672,14 +672,20 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) key = php_ap_getword(&pair, '='); if (!strcmp(key, "name")) { - if (param) efree(param); + if (param) { + efree(param); + } param = php_ap_getword_conf(&pair); } else if (!strcmp(key, "filename")) { - if (filename) efree(filename); + if (filename) { + efree(filename); + } filename = php_ap_getword_conf(&pair); } } - if (key) efree(key); + if (key) { + efree(key); + } efree(word); } @@ -688,7 +694,9 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) char *value = multipart_buffer_read_body(mbuff TSRMLS_CC); - if (!value) value = estrdup(""); + if (!value) { + value = estrdup(""); + } safe_php_register_variable(param, value, array_ptr, 0 TSRMLS_CC); if (!strcmp(param, "MAX_FILE_SIZE")) { |