]> git.saurik.com Git - wxWidgets.git/commit
Don't consider extra ".." an error in wxFileName::Normalize().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Nov 2010 23:53:28 +0000 (23:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Nov 2010 23:53:28 +0000 (23:53 +0000)
commitf822acceeee524d6e37fcbcaec3d795319c58d50
tree67767c1d7a00ec1cf0f3acfc6bc1f3561f73ab85
parent780cccd730e73416229d87c2d437839b597d3cb7
Don't consider extra ".." an error in wxFileName::Normalize().

The path being normalized could have come from user and there doesn't seem to
be any point in complaining about too many ".."s in it when we can handle them
correctly instead.

So simply ignore the extra ".."s for the absolute paths and keep them
unchanged for the relative ones instead of returning an error.

See #10960.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/filename.cpp
tests/filename/filenametest.cpp