summaryrefslogtreecommitdiff
path: root/classes/diskcache.php
AgeCommit message (Collapse)Author
2021-02-22migrate the rest into Config::Andrew Dolgov
2021-02-22wip: initial for config objectAndrew Dolgov
2021-02-19rename public.php/cached_url to cachedAndrew Dolgov
2021-02-15diskcache: unify namingAndrew Dolgov
2021-02-08move some old-style handlers to new callback onesAndrew Dolgov
2021-02-06fix some more warnings reported by phpstanAndrew Dolgov
2021-01-15pluginhost: load plugin data automatically (also marks load_data method as ↵Andrew Dolgov
private)
2020-11-04allow audio to be sent to client from the cacheJohn Aylward
2020-10-01hide uninteresting errors in several DOMDocument->loadHTML() invocationsAndrew Dolgov
2020-09-22remove a lot of stuff from global context (functions.php), add a few helper ↵Andrew Dolgov
classes instead
2020-09-15af_proxy_http: never print received data directly, always redirect to cached_urlAndrew Dolgov
cache/getUrl: basename() passed filename just in case
2020-09-14- fix multiple vulnerabilities in af_proxy_httpAndrew Dolgov
- fix vulnerability in rewrite_relative_url() which prevented some URLs from being properly absolutized - fetch_file_contents: validate all URLs before requesting them - validate URLs: explicitly whitelist http and https scheme, forbid everything else - DiskCache/cached_url: only serve whitelisted content types (images, video) - simplify filename/URL handling code, remove and consolidate some less-used functions
2020-06-15better support for image srcset attributes as discussed in ↵Andrew Dolgov
https://community.tt-rss.org/t/problem-with-img-srcset/3519
2020-05-12DiskCache: append fake file extension when sending cached files based on ↵Andrew Dolgov
mime type to make saving files easier
2020-04-29DiskCache: properly deal with srcset attributesAndrew Dolgov
2020-03-12add support for video[@src] in media cachelllusion3418
it's a valid alternative to a source[@src] child element: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
2020-03-12fix url rewriting for videos with poster and srclllusion3418
if a poster attribute was present only that would have been rewritten and the (arguably more important) src attribute would be left as-is
2019-08-15DiskCache::rewriteUrls() - remove img[@srcset]Andrew Dolgov
2019-08-14consistency: use DiskCache->exists() to check for present filesAndrew Dolgov
2019-08-14DiskCache: more strict checking for input filenames, getUrl() is no longer ↵Andrew Dolgov
static
2019-08-13* HOOK_ENCLOSURE_ENTRY: pass article_id to handlerAndrew Dolgov
* DiskCache: multiple fixes; support isWritable() for cache entries, set content-disposition for send() * public/cached_url: allow selecting files from sub-caches other than images * plugins/Cache_Starred_Images: rework to use DiskCache, can be enabled per-user, properly handles article enclosures, etc
2019-08-13DiskCache::expire: support .no-auto-expiry to prevent automatic cache ↵Andrew Dolgov
maintenance
2019-08-13expire_cached_files to DiskCache::expire()Andrew Dolgov
2019-08-13move rewrite_cached_urls to DiskCache::rewriteUrls()Andrew Dolgov
2019-08-13add DiskCache.getUrl() and use it in a bunch of placesAndrew Dolgov
2019-08-13add DiskCache.send; switch af_zz_imgproxy to use DiskCacheAndrew Dolgov
2019-08-13add DiskCache.isWritableAndrew Dolgov
2019-08-13add classes/diskcacheAndrew Dolgov