Use 'p' to validate a path in exif_imagetype() (like the other exif function already does)

This commit is contained in:
Kalle Sommer Nielsen 2016-08-03 23:57:51 +02:00
parent 372d0457b5
commit 4d90b1b5ea

View File

@ -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;
}