summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-07-08 15:30:45 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-12-12 07:25:22 +0000
commit101449a4cfa9c0d216332c6dc8ba826e8109e09d (patch)
tree9a5494bdc1c1819d837a97e74fc220f85e4e8310 /src/plugins/platforms
parentf7b44f879cdded7b2c6b604df873f7194e56a63a (diff)
QDir::cd(): Handle UNC server paths correctly
Add a bool *ok out parameter to qt_normalizePathSegments() and return false when ".." are left over for an absolute path, indicating an attempt to change above root. Factor out static helper qt_cleanPath() to be able to pass the return value to QDir::cd() and return on failure from there. Amends change 63f634322b2c0f795bd424be9e51953a10c701de, which did not handle UNC paths. Task-number: QTBUG-53712 Change-Id: I3e63a5dd0259306a0b99145348d815899582f78e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions