fix: final review wave — public routes, inbox 419, url schemes, deep_link, tests
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
@@ -91,7 +91,7 @@ class InboxController extends Controller
|
||||
/** Пропускает только относительные пути и http(s)-ссылки; прочее (напр. javascript:) отбрасывает. */
|
||||
public static function safeLink(?string $link): ?string
|
||||
{
|
||||
return $link !== null && preg_match('#^(/(?!/)|https?://)#i', $link) === 1 ? $link : null;
|
||||
return $link !== null && preg_match('#^(/(?![/\\\\])|https?://)#i', $link) === 1 ? $link : null;
|
||||
}
|
||||
|
||||
public static function relative(int $diff): string
|
||||
|
||||
Reference in New Issue
Block a user