From 8cc2faa210d778a33f12923fbbf15664d0a30f5d Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Thu, 1 Aug 2024 10:58:15 +0200 Subject: [PATCH] Do not allow backslashes in idexchange handles. --- src/ca/idexchange.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/idexchange.rs b/src/ca/idexchange.rs index bc3a1a8..d218ace 100644 --- a/src/ca/idexchange.rs +++ b/src/ca/idexchange.rs @@ -141,7 +141,7 @@ impl Handle { fn verify_name(s: &str) -> Result<(), InvalidHandle> { if s.bytes() - .all(|b| b.is_ascii_alphanumeric() || b == b'-' || b == b'_' || b == b'/' || b == b'\\') + .all(|b| b.is_ascii_alphanumeric() || b == b'-' || b == b'_' || b == b'/') && !s.is_empty() && s.len() < 256 {