Skip to content

Commit

Permalink
Do not allow backslashes in idexchange handles. (#304)
Browse files Browse the repository at this point in the history
This PR changes the ca::idexchange::Handle to not allow backslashes in its character set.
  • Loading branch information
partim authored Aug 1, 2024
1 parent 3717e5c commit 575a321
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 575a321

Please sign in to comment.