mirror of https://github.com/PCSX2/pcsx2.git
Path: Prevent Path::RealPath from returning '.' and '..' components
This commit is contained in:
parent
68e6ede47e
commit
0c21023bb2
|
@ -453,6 +453,11 @@ std::string Path::RealPath(const std::string_view path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If any relative symlinks were resolved, there may be '.' and '..'
|
||||||
|
// components in the resultant path, which must be removed.
|
||||||
|
realpath = Path::Canonicalize(realpath);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return realpath;
|
return realpath;
|
||||||
|
|
Loading…
Reference in New Issue