summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
2023-12-24Fix specifying auth type in UrlHelper::fetch(), add a test for 403 auth retry.wn_
2023-12-23Add some tests for UrlHelper::fetch()wn_
2023-12-23Rework content encoding error retrying in UrlHelper::fetch()wn_
2023-12-23Clean up UrlHelper::resolve_redirects().wn_
Also: this doesn't appear to be used... but maybe in some plugin?
2023-12-23Add back 'any auth' retry in UrlHelper::fetch()wn_
2023-12-22Use Guzzlewn_
2023-12-17Revert "Fix sanitizer with libxml2 >= 2.12.0"Andrew Dolgov
This reverts commit d4da4dcc321ca65fb2cd19877f395cc5f75933ab.
2023-11-26Fix sanitizer with libxml2 >= 2.12.0Chih-Hsuan Yen
Somehow with newer libxml2, `<?xml encoding="UTF-8">` no longer enforces UTF-8. Instead, non-ASCII contents are treated as ISO-8859-1 and get broken. For example, `<p>中文</p>` becomes `<p>&auml;&cedil;&shy;&aelig;&#150;&#135;</p>` (should be `<p>&#20013;&#25991;</p>`). Switching to another trick mentioned on [1] fixes the issue, and the new trick still works with older libxml2 (tested 2.11.5). As a side note, DOMDocument::loadHTML uses HTMLParser in libxml2 [2][3]. [1] https://stackoverflow.com/questions/8218230/php-domdocument-loadhtml-not-encoding-utf-8-correctly [2] https://github.com/php/php-src/blob/php-8.1.26/ext/dom/document.c#L1855 [3] https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-HTMLparser.html
2023-11-03add wip UI/backend stuff to filter feed treeAndrew Dolgov
2023-10-28add stuff necessary to run integration tests using phpunitAndrew Dolgov
2023-10-27add a separate interface for auth modules w/ change_password() methodAndrew Dolgov
2023-10-27Merge branch 'master' of gitlab.tt-rss.org:tt-rss/tt-rssAndrew Dolgov
2023-10-27replace some dirname horrors with a separate unit-tested methodAndrew Dolgov
2023-10-26Fix class names in some more places.wn_
Related to the PSR-4 move via 865ecc87963dc3b26e66296616eef2a1cc41ac3f
2023-10-25make phpstan happyprotected/psr-4Andrew Dolgov
2023-10-25add healthcheck public method, map by default to /healthzAndrew Dolgov
2023-10-25move to psr-4 autoloaderAndrew Dolgov
2023-10-24Revert "api: escape newlines in headline content HTML object"Andrew Dolgov
This reverts commit ed43a7336925c1a97cad8768afa52c5c46f299bb.
2023-10-24add a workaround for make_self_url() when invoked off /api/ endpoint, add ↵Andrew Dolgov
unit tests for this method
2023-10-24api: escape newlines in headline content HTML objectAndrew Dolgov
2023-10-24add stub opentelemetry classes in case it is disabledAndrew Dolgov
2023-10-23Revert "add a self url path hack to strip request path directories (needed ↵Andrew Dolgov
for /api/index.php)" This reverts commit 9826d2f07527e3259957628030adc87bde391b0c.
2023-10-23Revert "make phpstan happy"Andrew Dolgov
This reverts commit deb441e9e31bb2fe015c131fafd9570b630b5bf7.
2023-10-23make phpstan happyAndrew Dolgov
2023-10-23add a self url path hack to strip request path directories (needed for ↵Andrew Dolgov
/api/index.php)
2023-10-22remove startup checks for SELF_URL_PATH, rely on auto-detection insteadAndrew Dolgov
2023-10-21switch to html2text() instead of strip_tags() when preparing FTS indexAndrew Dolgov
2023-10-21cosmetic fix for root span nameAndrew Dolgov
2023-10-21fix previousAndrew Dolgov
2023-10-21stop whining if _SESSION etc are not definedAndrew Dolgov
2023-10-21show logged in user as root span nameAndrew Dolgov
2023-10-21make phpstan happy, run phpstan on all files on task startupprotected/opentelemetryAndrew Dolgov
2023-10-20a bit more tracingAndrew Dolgov
2023-10-20add placeholder instrumentation for publicAndrew Dolgov
2023-10-20stop calling spans scopesAndrew Dolgov
2023-10-20make tracer field non-staticAndrew Dolgov
2023-10-20OPENTELEMETRY_HOST -> OPENTELEMETRY_ENDPOINTAndrew Dolgov
2023-10-20make phpstan & watcher happy, stop running phpstan on vendor/Andrew Dolgov
2023-10-20jaeger-client -> opentelemetryAndrew Dolgov
2023-10-11fix content_preview not shown in JSON shared feedAndrew Dolgov
2023-10-04batch feed editor: don't try to save feed_url or title, those aren't in the ↵Andrew Dolgov
dialog
2023-10-04fix feed_language being unnecessarily quoted in batch feed editorAndrew Dolgov
2023-09-18phpstan fixAndrew Dolgov
2023-09-18feed debugger: add content regexp matches to filter debug outputAndrew Dolgov
2023-08-12fix basename() being passed a NULL valueAndrew Dolgov
2023-08-03use non-deprecated variant of get_schema_version()Andrew Dolgov
2023-08-02 * logger: add optional HTML outputAndrew Dolgov
* feed debugger: add checkbox to dump feed XML
2023-06-14disable app passwords in the UI if auth_internal is not loadedAndrew Dolgov
2023-05-28public/getUnread: fix PHP8 warning if fresh optional parameter is not givenAndrew Dolgov
2023-05-27Fix version string for unsupported installationsChih-Hsuan Yen
For unsupported installations, $version['commit'] may not be defined, leading to a warning: E_WARNING (2) Undefined array key "commit" 1. classes/config.php(316): ttrss_error_handler(Undefined array key "commit", classes/config.php) 2. prefs.php(173): get_version_html()