com php-src: Fix bug #69207 - move_uploaded_file allows nulls in path: ext/standard/basic_functions.c
| From: | Stanislav Malyshev | Date: | Tue, 17 Mar 2015 23:30:57 +0000 |
| Subject: | com php-src: Fix bug #69207 - move_uploaded_file allows nulls in path: ext/standard/basic_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85583@lists.php.net to get a copy of this message | ||
Commit: 6632684e032e2a895c4fd6178c4bc3736d57e03c
Author: Stanislav Malyshev <stas@php.net> Tue, 17 Mar 2015 12:47:58 -0700
Parents: fa1c05540c69fac5158ade2d8c321690ad6e5669
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6632684e032e2a895c4fd6178c4bc3736d57e03c
Log:
Fix bug #69207 - move_uploaded_file allows nulls in path
Bugs:
https://bugs.php.net/69207
Changed paths:
M ext/standard/basic_functions.c
Diff:
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index ed79332..5c103df 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -5733,7 +5733,7 @@ PHP_FUNCTION(move_uploaded_file)
RETURN_FALSE;
}
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &path, &path_len,
&new_path, &new_path_len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "sp", &path, &path_len,
&new_path, &new_path_len) == FAILURE) {
return;
}