com php-src: Use 'p' to validate a path in exif_imagetype( ) (like the other exif function already does ): ext/exif/exif.c

From: Date: Wed, 03 Aug 2016 21:57:51 +0000
Subject: com php-src: Use 'p' to validate a path in exif_imagetype( ) (like the other exif function already does ): ext/exif/exif.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-93596@lists.php.net to get a copy of this message
Commit: 4d90b1b5ea459c561826d8eb85e873157f55a83c Author: Kalle Sommer Nielsen <kalle@php.net> Wed, 3 Aug 2016 23:57:51 +0200 Parents: 372d0457b5d868a4a976d227b13bb020c6d13224 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4d90b1b5ea459c561826d8eb85e873157f55a83c Log: Use 'p' to validate a path in exif_imagetype() (like the other exif function already does) Changed paths: M ext/exif/exif.c Diff: diff --git a/ext/exif/exif.c b/ext/exif/exif.c index e0201b8..2a68047 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; }

« previous php.cvs (#93596) next »