Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-03-22 | rewrite_relative: deal with undefined path warning | Andrew Dolgov | |
2022-03-22 | rewrite_relative: use isset() to check for relative path | Andrew Dolgov | |
2022-03-22 | tests: add stub autoloader, add a few more rewrite_relative tests | Andrew Dolgov | |
2022-03-22 | * add phpunit as a dev dependency | Andrew Dolgov | |
* add some basic tests for UrlHelper::rewrite_relative() * fix UrlHelper::rewrite_relative() to work better on non-absolute relative URL paths | |||
2022-02-18 | rewrite_relative: prevent php warning when checking for unset content type ↵ | Andrew Dolgov | |
in EXTRA_SCHEMES_BY_CONTENT_TYPE | |||
2022-02-17 | rewrite_relative: whitelist specific schemes for URLs with 'known' ↵ | Andrew Dolgov | |
content-types i.e. specified for enclosures | |||
2021-12-23 | fetch: return HTTP code when no curl_error() is available | Andrew Dolgov | |
2021-11-24 | urlhelper: add debugging output for download attempts | Andrew Dolgov | |
2021-11-20 | * sql_bool_to_bool: make parameter nullable | Andrew Dolgov | |
* errorhandler: don't try to truncate null strings * UrlHelper::rewrite_relative: fix undefined offset warnings for URLs that lack schema/host (data: etc) | |||
2021-11-15 | Fix a PHPStan warning in 'UrlHelper::rewrite_relative()'. | wn_ | |
2021-11-14 | adjust some return types in urlhelper | Andrew Dolgov | |
2021-11-12 | Switch class properties from PHP typing to PHPDoc for compatibility with PHP ↵ | wn_ | |
< 7.4.0 | |||
2021-11-11 | Address PHPStan warnings in 'classes/diskcache.php'. | wn_ | |
2021-11-11 | Fix some additional PHPStan warnings in UrlHelper. | wn_ | |
2021-11-10 | Initial go at PHPStan rule level 6. | wn_ | |
2021-11-01 | Address PHPStan warnings in 'classes/urlhelper.php'. | wn_ | |
Intentionally skipping the line 66 one for now; adding an 'is_array' check clears the warning, but there's a larger topic of how to handle an invalid '' that doesn't result in an array. ------ --------------------------------------------------------------------- Line classes/urlhelper.php ------ --------------------------------------------------------------------- 66 Offset 'path' on array{scheme: string} in isset() does not exist. 165 Parameter #2 $associative of function get_headers expects bool, int given. 167 Parameter #2 $associative of function get_headers expects bool, int given. 278 Negated boolean expression is always true. 309 Negated boolean expression is always true. ------ --------------------------------------------------------------------- | |||
2021-08-23 | remove SELF_USER_AGENT custom constant, replaced with configurable ↵ | Andrew Dolgov | |
Config::HTTP_USER_AGENT / Config::get_user_agent() | |||
2021-06-18 | Fix operator precedence | Philip Klempin | |
2021-06-18 | revise previous a little bit more | Andrew Dolgov | |
2021-06-18 | revise previous a little bit | Andrew Dolgov | |
2021-06-18 | UrlHelper::rewrite_relative(): | Andrew Dolgov | |
- support invoking specifying owner URL element/attribute - restrict mailto/magnet/tel schemes for A href - allow some data: base64 image types for IMG src Sanitizer::sanitize(): - when checking href and src attributes, pass element tagname and attribute to rewrite_relative() | |||
2021-06-16 | Skip URI base on ALLOWED_RELATIVE_SCHEMES in rewrite_relative | Philip Klempin | |
2021-05-21 | UrlHelper::rewrite_relative: don't try to feed NULL to with_trailing_slash() | Andrew Dolgov | |
2021-05-21 | feeditem_atom: support xml:base for enclosures and entry content | Andrew Dolgov | |
UrlHelper::rewrite_relative: use base URL path if relative url path is not absolute (experimental) | |||
2021-05-07 | add urlhelper to extract youtube video id from url | Andrew Dolgov | |
2021-03-13 | * limit progressfunction debugging to size quota exceeded notifications | Andrew Dolgov | |
* af_redditimgur: reparent generated iframes outside of post table | |||
2021-03-06 | Fix "array offset on value of type null" for $error and $old_error | ltGuillaume | |
I tried applying to only $error and only $old_error, but both appear to be needed. Log entries: E_NOTICE (8) classes/urlhelper.php:464 Trying to access array offset on value of type null 1. classes/urlhelper.php(464): ttrss_error_handler(8, Trying to access array offset on value of type null, classes/urlhelper.php, 464, [) 2. classes/rssutils.php(464): fetch([{"url":"https://some.url.rss","login":"","pass":"","timeout":15,"last_modified":"Sat, 31 Aug 2019 15:22:31 GMT"}) 3. update.php(235): update_rss_feed(732, 1) | |||
2021-03-01 | move version-related stuff to Config; fix conditional feed requests | Andrew Dolgov | |
2021-02-28 | move all $fetch globals to UrlHelper | Andrew Dolgov | |
2021-02-23 | cleanup some defined-stuff | Andrew Dolgov | |
2021-02-22 | migrate the rest into Config:: | Andrew Dolgov | |
2021-02-06 | fix several warnings reported by phpstan | Andrew Dolgov | |
2021-02-05 | initial WIP for php8; bump php version requirement to 7.0 | Andrew Dolgov | |
2020-12-12 | Handle potential absence of a URL path in UrlHelper. | wn | |
2020-11-14 | URLHelper: fix E_DEPRECATED error related to idn_to_ascii() | Andrew Dolgov | |
2020-09-28 | validate url: feed urlencoded() URL to filter_var() only | Andrew Dolgov | |
2020-09-22 | another hack for validation of URLs with invalid characters | Andrew Dolgov | |
2020-09-22 | validate URLs: convert IDN to punycode before passing URL to filter_var() | Andrew Dolgov | |
2020-09-22 | use self:: in some places to invoke static methods from the same class | Andrew Dolgov | |
2020-09-22 | - don't fail on non-ascii characters when validating URLs | Andrew Dolgov | |
- fix IDN hostnames not being converted properly | |||
2020-09-22 | fix previous re: resolve_redirects | Andrew Dolgov | |
2020-09-22 | remove a lot of stuff from global context (functions.php), add a few helper ↵ | Andrew Dolgov | |
classes instead |