com php-src: Fix bug #69207 - move_uploaded_file allows nulls in path: NEWS ext/standard/basic_functions .c
| From: | Stanislav Malyshev | Date: | Tue, 17 Mar 2015 19:47:58 +0000 |
| Subject: | com php-src: Fix bug #69207 - move_uploaded_file allows nulls in path: NEWS ext/standard/basic_functions .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85568@lists.php.net to get a copy of this message | ||
Commit: 1291d6bbee93b6109eb07e8f7916ff1b7fcc13e1
Author: Stanislav Malyshev <stas@php.net> Tue, 17 Mar 2015 12:47:58 -0700
Parents: c8eaca013a3922e8383def6158ece2b63f6ec483
Branches: PHP-5.4 PHP-5.5 PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1291d6bbee93b6109eb07e8f7916ff1b7fcc13e1
Log:
Fix bug #69207 - move_uploaded_file allows nulls in path
Bugs:
https://bugs.php.net/69207
Changed paths:
M NEWS
M ext/standard/basic_functions.c
Diff:
diff --git a/NEWS b/NEWS
index b8dad75..9b45a99 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2015 PHP 5.4..39
+- Core:
+ . Fixed bug #69207 (move_uploaded_file allows nulls in path). (Stas)
+
19 Feb 2015 PHP 5.4.38
- Core:
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 9a9df30..c3e2230 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -5775,7 +5775,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;
}