]> granicus.if.org Git - php/commitdiff
Fix bug #69207 - move_uploaded_file allows nulls in path
authorStanislav Malyshev <stas@php.net>
Tue, 17 Mar 2015 19:47:58 +0000 (12:47 -0700)
committerStanislav Malyshev <stas@php.net>
Tue, 17 Mar 2015 23:30:57 +0000 (16:30 -0700)
ext/standard/basic_functions.c

index ed793323778cc92688df449a34674d500181f613..5c103df735cd496d328c8fdf414d8af6997c397e 100644 (file)
@@ -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;
        }