Skip to content

Commit

Permalink
chore: optimization path length check
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguang1010 committed Jan 10, 2024
1 parent 78af264 commit ca1fff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imkey-core/ikc-common/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn check_path_max_five_depth(path: &str) -> Result<()> {
//check depth and length
let strings: Vec<&str> = path.split("/").collect();
let depth = strings.len();
if !(2..=6).contains(&depth) || path.len() > 100 {
if !(2..=6).contains(&depth) {
return Err(CommonError::ImkeyPathIllegal.into());
}
//regx check
Expand Down

0 comments on commit ca1fff3

Please sign in to comment.