From 20431706a863f92cb37dc512fef6e48d192aaf2c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:11:38 +0200 Subject: Merging upstream version 1.66.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/unicode-security/src/restriction_level.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vendor/unicode-security/src/restriction_level.rs') diff --git a/vendor/unicode-security/src/restriction_level.rs b/vendor/unicode-security/src/restriction_level.rs index adaf07460..b2feedbad 100644 --- a/vendor/unicode-security/src/restriction_level.rs +++ b/vendor/unicode-security/src/restriction_level.rs @@ -48,7 +48,7 @@ impl RestrictionLevelDetection for &'_ str { if !GeneralSecurityProfile::identifier_allowed(ch) { return RestrictionLevel::Unrestricted; } - if ch.is_ascii() { + if !ch.is_ascii() { ascii_only = false; } let ch_set = ch.into(); -- cgit v1.2.3