mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
standardize() shouldn't remove leading ./
This commit is contained in:
parent
ff91b31732
commit
062593344a
@ -917,7 +917,7 @@ standardize() {
|
|||||||
while (p < _filename.length()) {
|
while (p < _filename.length()) {
|
||||||
size_t slash = _filename.find('/', p);
|
size_t slash = _filename.find('/', p);
|
||||||
string component = _filename.substr(p, slash - p);
|
string component = _filename.substr(p, slash - p);
|
||||||
if (component == ".") {
|
if (component == "." && p != 0) {
|
||||||
// Ignore /./.
|
// Ignore /./.
|
||||||
} else if (component == ".." && !components.empty() &&
|
} else if (component == ".." && !components.empty() &&
|
||||||
!(components.back() == "..")) {
|
!(components.back() == "..")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user