diff options
author | Christian Schneider | 2024-05-27 15:10:38 +0200 |
---|---|---|
committer | Christian Schneider | 2024-05-27 15:10:38 +0200 |
commit | 134e639995c9a7a930da31c5b615d51997d0d177 (patch) | |
tree | 624d0965f8bf03ac91a4c36c757304bde1e24590 /it_url.class | |
parent | b484fab88a9229f7c87ea053564d0d8d3d2a565d (diff) | |
download | itools-134e639995c9a7a930da31c5b615d51997d0d177.tar.gz itools-134e639995c9a7a930da31c5b615d51997d0d177.tar.bz2 itools-134e639995c9a7a930da31c5b615d51997d0d177.zip |
Fix it_url::get with maxlength and large response
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class index 953562d..01913e3 100644 --- a/it_url.class +++ b/it_url.class @@ -316,7 +316,7 @@ function request($p=array()) { $opts[CURLOPT_WRITEFUNCTION] = function ($dummy, $data) use ($p, &$content) { static $space; - $write = min($space ?? $p['maxlength'], strlen($data)); + $write = min($space ??= $p['maxlength'], strlen($data)); $content .= substr($data, 0, $write); $space -= $write; return $write; |