From: Kalle Sommer Nielsen Date: Wed, 3 Aug 2016 21:57:51 +0000 (+0200) Subject: Use 'p' to validate a path in exif_imagetype() (like the other exif function already... X-Git-Tag: php-7.2.0alpha1~1558^2~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d90b1b5ea459c561826d8eb85e873157f55a83c;p=php Use 'p' to validate a path in exif_imagetype() (like the other exif function already does) --- diff --git a/ext/exif/exif.c b/ext/exif/exif.c index e0201b8127..2a6804720d 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -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; }