com php-src: Fix bug #69207 - move_uploaded_file allows nulls in path: ext/standard/basic_functions.c
| From: | JulienPauli | Date: | Wed, 18 Mar 2015 09:17:56 +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-85614@lists.php.net to get a copy of this message | ||
Commit: 93b8970b3316cd5c557eae2f03d7efc39a9eae53
Author: Stanislav Malyshev <stas@php.net> Tue, 17 Mar 2015 12:47:58 -0700
Committer: Julien Pauli <jpauli@php.net> Wed, 18 Mar 2015 10:17:56 +0100
Parents: 10d61a3a3e3087603dfbf45febaca2894a1f2344
Branches: PHP-5.5.23
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=93b8970b3316cd5c557eae2f03d7efc39a9eae53
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 65570fe..a3783e0 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -5833,7 +5833,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;
}