From: Pierre Joye Date: Fri, 20 Aug 2010 16:37:33 +0000 (+0000) Subject: - fix string validation, MOPS-2010-24 X-Git-Tag: php-5.4.0alpha1~191^2~1066 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=511b5473428825a662647208b45cafb8543d61cc;p=php - fix string validation, MOPS-2010-24 --- diff --git a/ext/phar/stream.c b/ext/phar/stream.c index 2b91e8df24..1fbbbb1b54 100644 --- a/ext/phar/stream.c +++ b/ext/phar/stream.c @@ -470,7 +470,7 @@ static int phar_stream_flush(php_stream *stream TSRMLS_DC) /* {{{ */ if (stream->mode[0] == 'w' || (stream->mode[0] == 'r' && stream->mode[1] == '+')) { ret = phar_flush(((phar_entry_data *)stream->abstract)->phar, 0, 0, 0, &error TSRMLS_CC); if (error) { - php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS TSRMLS_CC, error); + php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS TSRMLS_CC, "%s", error); efree(error); } return ret;