mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
Use 'p' to validate a path in exif_imagetype() (like the other exif function already does)
This commit is contained in:
parent
372d0457b5
commit
4d90b1b5ea
@ -4355,7 +4355,7 @@ PHP_FUNCTION(exif_imagetype)
|
||||
php_stream * stream;
|
||||
int itype = 0;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &imagefile, &imagefile_len) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &imagefile, &imagefile_len) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user