diff options
author | Rasmus Lerdorf <rasmus@php.net> | 1999-09-21 17:50:51 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 1999-09-21 17:50:51 +0000 |
commit | cd0957112b147b434c6896e4c7382f98d595defb (patch) | |
tree | d7c97952d7b08884ae5957fb96fe2ba268ec0241 /ext/zlib | |
parent | 53fb0ea07538c5d60b8ab0bcd0629a4a4af9b488 (diff) | |
download | php-git-cd0957112b147b434c6896e4c7382f98d595defb.tar.gz |
fgetss/gzgetss fixes
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 3e505f0425..b4717e40ff 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -518,7 +518,8 @@ PHP_FUNCTION(gzgetss) RETURN_FALSE; } - _php3_strip_tags(buf, len, ZLIBG(gzgetss_state), allow->value.str.val); + /* strlen() can be used here since we are doing it on the return of an fgets() anyway */ + _php3_strip_tags(buf, strlen, ZLIBG(gzgetss_state), allow?allow->value.str.val:NULL); RETURN_STRING(buf, 0); } |