mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-13 06:20:47 +02:00
Path: Prevent Path::RealPath from returning '.' and '..' components
This commit is contained in:
1 parent
68e6ede47e
commit
0c21023bb2
1 file changed
+5
@@ -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
|
||||
|
||||
return realpath;
|
||||
|
||||
Reference in new issue
Block a user