Skip to content

Commit e8a4afb

Browse files
committed
fix: Critical: Inverted domain validation logic.
1 parent 053dd99 commit e8a4afb

File tree

1 file changed

+1
-1
lines changed
  • infrastructure/eid-wallet/src/routes/(app)/scan-qr

1 file changed

+1
-1
lines changed

infrastructure/eid-wallet/src/routes/(app)/scan-qr/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ onMount(async () => {
139139
140140
// Validate redirect URL domain
141141
if (
142-
/^(?=.{1,253}$)(?!\-)([a-zA-Z0-9\-]{1,63}(?<!\-)\.)+[a-zA-Z]{2,}$/.test(
142+
!/^(?=.{1,253}$)(?!\-)([a-zA-Z0-9\-]{1,63}(?<!\-)\.)+[a-zA-Z]{2,}$/.test(
143143
hostname,
144144
)
145145
) {

0 commit comments

Comments
 (0)