Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
trou committed Sep 7, 2024
1 parent 3b1bcc7 commit 00688f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/urlapp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pub struct UrlEncApplet {
fn build_url_table(excluded: &str, table: &mut [bool; 256]) {
for i in 0..255 {
let c = char::from_u32(i).unwrap();
// encode non graphic chars and signs from the RFC3986 list, excepted
// explicitly excluded
if !c.is_ascii_graphic()
|| (!excluded.contains(c)
&& matches!(
Expand Down

0 comments on commit 00688f0

Please sign in to comment.