Skip to content

Commit 4268c09

Browse files
committed
[rust] Check unc prefix in canonicalice function
1 parent e8c77b8 commit 4268c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ pub trait SeleniumManager {
941941
.canonicalize()
942942
.unwrap_or(path_buf.clone()),
943943
);
944-
if WINDOWS.is(self.get_os()) {
944+
if WINDOWS.is(self.get_os()) || canon_path.starts_with(UNC_PREFIX) {
945945
canon_path = canon_path.replace(UNC_PREFIX, "")
946946
}
947947
if !path_buf_to_string(path_buf.clone()).eq(&canon_path) {

0 commit comments

Comments
 (0)