]> granicus.if.org Git - php/commitdiff
Use 'p' to validate a path in exif_imagetype() (like the other exif function already...
authorKalle Sommer Nielsen <kalle@php.net>
Wed, 3 Aug 2016 21:57:51 +0000 (23:57 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Wed, 3 Aug 2016 21:57:51 +0000 (23:57 +0200)
ext/exif/exif.c

index e0201b81279cf302cb7f0a40646a6630955a37e7..2a6804720dcff21203e8b2759db4625c1a4a5ebf 100644 (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;
        }