com php-src: Fix bug #69207 - move_uploaded_file allows nulls in path: ext/standard/basic_functions.c
| From: | Ferenc Kovacs | Date: | Wed, 18 Mar 2015 23:41:36 +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-85640@lists.php.net to get a copy of this message | ||
Commit: 313ff116fa08918fb3949d51f17eb39d0b950962
Author: Stanislav Malyshev <stas@php.net> Tue, 17 Mar 2015 12:47:58 -0700
Committer: Ferenc Kovacs <tyrael@php.net> Thu, 19 Mar 2015 00:41:36 +0100
Parents: 7a3fca34058b6eee258e24bd5cd647d46b6bf317
Branches: PHP-5.6.7
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=313ff116fa08918fb3949d51f17eb39d0b950962
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 4f2505a..7eacd81 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -5805,7 +5805,7 @@ PHP_FUNCTION(move_uploaded_file)
RETURN_FALSE;
}
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &path, &path_len,
&new_path, &new_path_len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sp", &path, &path_len,
&new_path, &new_path_len) == FAILURE) {
return;
}