Fix smb:/ handling

Authored by davidedmundson on Oct 21 2017, 1:03 PM.

Description

Fix smb:/ handling

Summary:
smb:// is a URL with no host and no path
smb:/// is a URL with no host, but a valid path

The current code special cases smb:/ which isn't a real thing.

This results in smb:// falling through checkURL() and being incorrectly
modified into smb:/// creating a URL with a host, something different.

This code makes any smb:/ get converted into smb:// at the right place.
Then the special case for having no host or path are handled properly.

Test Plan: https://paste.kde.org/pfpwrlxva

Reviewers: apol, madcatx, elvisangelaccio, ngraham

Reviewed By: elvisangelaccio, ngraham

Subscribers: ngraham

Differential Revision: https://phabricator.kde.org/D8141

Details

Committed
davidedmundsonOct 21 2017, 1:03 PM
Reviewer
elvisangelaccio
Differential Revision
D8141: Fix smb:/ handling
Parents
R320:1e66214710d3: GIT_SILENT Upgrade KDE Applications version to 17.08.2.
Branches
Unknown
Tags
Unknown