release: v5.2.3 - Redis optimizations, stats scaling, DNS and CSP fixes

This commit is contained in:
Bartłomiej Janczak
2026-06-08 16:11:47 +02:00
parent 06e3934438
commit 9c4d693b25
195 changed files with 21717 additions and 4098 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
* @author Bartek Janczak <barek122@gmail.com>
* @copyright 2026 Bartek Janczak
* @license Custom Source-Available License (see LICENSE file)
*/
namespace Bjanczak\FilamentShortUrl\Http\Controllers;
use Bjanczak\FilamentShortUrl\Services\IframeableChecker;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
class ShortUrlUtilityController extends Controller
{
public function __construct(
private readonly IframeableChecker $iframeableChecker,
) {}
/**
* Pre-check whether a destination URL can be embedded in a cloaking iframe.
*/
public function checkIframeable(Request $request): JsonResponse
{
$validated = $request->validate([
'url' => 'required|url|max:2048',
]);
$url = $validated['url'];
$iframeable = $this->iframeableChecker->isIframeable($url);
return response()->json([
'url' => $url,
'iframeable' => $iframeable,
]);
}
}