Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 |