supahgreg
0b1a8ec93e
Simplify some Sanitizer/UrlHelper stuff.
2025-11-07 16:02:15 +00:00
supahgreg
a041e2a390
Fix Sanitizer and test issues.
2025-11-07 10:01:07 +00:00
supahgreg
287e293a3a
Disallow localhost/loopback and private URLs in certain sanitization situations.
2025-11-07 08:15:46 +00:00
supahgreg
d92c1a9d84
Fix 'UrlHelper' stripping port numbers.
...
'UrlHelper::build_url()' and 'UrlHelper::rewrite_relative()' now preserve port numbers.
2025-11-07 03:34:27 +00:00
supahgreg
a8320ab9cf
Use first-class callable syntax.
...
Also tweak 'clean()' a bit in the process.
https://wiki.php.net/rfc/first_class_callable_syntax
2025-10-23 16:59:27 +00:00
supahgreg
80702bb018
Fix a typing issue and remove several PHPStan ignores.
2025-10-18 23:49:37 +00:00
supahgreg
6cf8f11b2b
Rector rule 'RemoveUnusedVariableInCatchRector'.
...
https://getrector.com/rule-detail/remove-unused-variable-in-catch-rector
2025-10-18 01:37:11 +00:00
supahgreg
8b88da364f
Tweak the PHPUnit config and fix a UrlHelper deprecation that was identified.
2025-10-11 21:17:19 +00:00
Andrew Dolgov
36644365c8
use built-in feed for integration test
2025-09-02 22:22:24 +03:00
vjkcxl
9fd54db30d
Fix youtube-nocookie support
2025-08-04 22:55:28 -05:00
wn_
1c9fddd757
Add a PHPStan ignore for a non-issue in 'UrlHelper::fetch()'.
2025-04-27 15:05:28 +00:00
wn_
667528d5b9
Use PHP 8 'str_' functions.
...
A few more characters in some places, but helps with readability.
2024-11-24 13:59:29 +00:00
wn_
abcd0e8ba2
Use native union types in most places.
2024-11-23 17:43:24 +00:00
Andrew Dolgov
884fd92f13
drop opentelemetry
2024-10-01 16:00:34 +03:00
wn_
9dd4102c7f
Replace basic 'isset()' cases with the null coalescing operator.
2024-08-04 15:42:11 +00:00
wn_
8ef2803b27
Only include the exception message in 'UrlHelper::$fetch_last_error'.
...
Before this the stack trace was included, which is a bit much.
2024-01-09 12:38:32 +00:00
wn_
91a91dac15
Perform validation of redirect URLs during the redirect process.
...
Previously, validation was only done after all redirects and the final request had completed. This approach ensures all redirects are to URLs that pass extended validation.
2023-12-29 00:41:52 +00:00
wn_
0ea9db3170
Fix specifying auth type in UrlHelper::fetch(), add a test for 403 auth retry.
2023-12-24 11:21:43 +00:00
wn_
3c171cc92c
Add some tests for UrlHelper::fetch()
2023-12-23 19:52:56 +00:00
wn_
9132360d46
Rework content encoding error retrying in UrlHelper::fetch()
2023-12-23 16:34:39 +00:00
wn_
d82da74363
Clean up UrlHelper::resolve_redirects().
...
Also: this doesn't appear to be used... but maybe in some plugin?
2023-12-23 15:56:21 +00:00
wn_
ff59fbd460
Add back 'any auth' retry in UrlHelper::fetch()
2023-12-23 15:34:21 +00:00
wn_
e85d47dfd4
Use Guzzle
2023-12-22 16:51:23 +00:00
Andrew Dolgov
865ecc8796
move to psr-4 autoloader
2023-10-25 12:55:09 +03:00