PrivateBin/lib/Proxy
TowyTowy a0c0d154ee fix: handle YOURLS 200 response without shorturl gracefully
When YOURLS replies with statusCode 200 but no "shorturl" field,
YourlsProxy::_extractShortUrl() returned int 0 for its ?string return
type. Under the file's declare(strict_types=1) this raises an uncaught
TypeError, aborting paste creation instead of surfacing the intended
"Error parsing proxy response" message. Fall back to null (matching
ShlinkProxy) so the existing graceful error path is taken.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 23:02:26 +02:00
..
AbstractProxy.php apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
ShlinkProxy.php apply null coalescing operator 2025-11-19 19:24:17 +01:00
YourlsProxy.php fix: handle YOURLS 200 response without shorturl gracefully 2026-07-12 23:02:26 +02:00