From 4d90b1b5ea459c561826d8eb85e873157f55a83c Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Wed, 3 Aug 2016 23:57:51 +0200 Subject: [PATCH] Use 'p' to validate a path in exif_imagetype() (like the other exif function already does) --- ext/exif/exif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1