Skip to content

Commit

Permalink
[rust] Check unc prefix in canonicalice function
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Sep 27, 2023
1 parent e8c77b8 commit 4268c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ pub trait SeleniumManager {
.canonicalize()
.unwrap_or(path_buf.clone()),
);
if WINDOWS.is(self.get_os()) {
if WINDOWS.is(self.get_os()) || canon_path.starts_with(UNC_PREFIX) {
canon_path = canon_path.replace(UNC_PREFIX, "")
}
if !path_buf_to_string(path_buf.clone()).eq(&canon_path) {
Expand Down

0 comments on commit 4268c09

Please sign in to comment.