mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 06:26:22 +00:00
fix(validation): improve private URL handling and error feedback
Reject link-local targets even when allowlisted, link private-target errors to endpoint settings, and tighten persistent-volume table widths.
This commit is contained in:
@@ -63,7 +63,18 @@
|
||||
@endif
|
||||
@error($modelBinding)
|
||||
<label class="label">
|
||||
<span class="text-red-500 label-text-alt">{{ $message }}</span>
|
||||
@php
|
||||
preg_match('/(https?:\/\/\S+)$/', $message, $validationLinkMatches);
|
||||
$validationLink = $validationLinkMatches[1] ?? null;
|
||||
@endphp
|
||||
<span class="text-red-500 label-text-alt">
|
||||
@if ($validationLink)
|
||||
{{ str($message)->beforeLast($validationLink)->trim() }}
|
||||
<a class="font-medium underline" href="{{ $validationLink }}">Set them here.</a>
|
||||
@else
|
||||
{{ $message }}
|
||||
@endif
|
||||
</span>
|
||||
</label>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user