Skip to content

Commit

Permalink
Do not allow backslashes in idexchange handles.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Aug 1, 2024
1 parent 3717e5c commit 8cc2faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ca/idexchange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<T> Handle<T> {

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
{
Expand Down

0 comments on commit 8cc2faa

Please sign in to comment.