diff options
| author | Urban Müller | 2025-11-20 17:51:52 +0100 |
|---|---|---|
| committer | Urban Müller | 2025-11-20 17:51:52 +0100 |
| commit | 9c4f36c8587990f3f8b014cea8271327767a8a02 (patch) | |
| tree | 787d3bceed51c90ab78e6ccdf58395b93d48b084 /it_url.class | |
| parent | 32436719d35dde638b5ef5163f3d454bf84471fd (diff) | |
| download | itools-9c4f36c8587990f3f8b014cea8271327767a8a02.tar.gz itools-9c4f36c8587990f3f8b014cea8271327767a8a02.tar.bz2 itools-9c4f36c8587990f3f8b014cea8271327767a8a02.zip | |
Diffstat (limited to 'it_url.class')
| -rw-r--r-- | it_url.class | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class index fe3daa1..e2c0e13 100644 --- a/it_url.class +++ b/it_url.class @@ -639,6 +639,7 @@ static function get_cache($p = array()) if ($p['assoc'] ? ($data['status'] < 500 || $data['data']) : $data) { $success = true; + # FIXME 2026-02 UM json_encode fails on iso-latin content. use separate file for metadata $isnewfile = it_url::_atomicwrite($path, $p['assoc'] ? ($data['status'] === 304 ? true : it::json_encode($data)) : $data); # $data === true means not modified (no new data fetched) and instructs _atomicwrite to just touch the file } else if ($p['keepfailed']) |