Changeset View
Changeset View
Standalone View
Standalone View
smb/kio_smb_internal.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 45 | { | |||
---|---|---|---|---|---|
46 | m_type = SMBURLTYPE_UNKNOWN; | 46 | m_type = SMBURLTYPE_UNKNOWN; | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | //----------------------------------------------------------------------- | 49 | //----------------------------------------------------------------------- | ||
50 | SMBUrl::SMBUrl(const QUrl& kurl) | 50 | SMBUrl::SMBUrl(const QUrl& kurl) | ||
51 | : QUrl(kurl) | 51 | : QUrl(kurl) | ||
52 | //----------------------------------------------------------------------- | 52 | //----------------------------------------------------------------------- | ||
53 | { | 53 | { | ||
54 | // We treat cifs as an alias but need to translate it to smb. | ||||
55 | // https://bugs.kde.org/show_bug.cgi?id=327295 | ||||
56 | // It's not IANA registered and also libsmbc internally expects | ||||
57 | // smb URIs so we do very broadly coerce cifs to smb. | ||||
58 | // Also see SMBSlave::checkURL. | ||||
59 | if (scheme() == "cifs") { | ||||
60 | setScheme("smb"); | ||||
61 | } | ||||
54 | updateCache(); | 62 | updateCache(); | ||
55 | } | 63 | } | ||
56 | 64 | | |||
57 | SMBUrl::SMBUrl(const SMBUrl& other) | 65 | SMBUrl::SMBUrl(const SMBUrl& other) | ||
58 | : QUrl(other), | 66 | : QUrl(other), | ||
59 | m_surl(other.m_surl), | 67 | m_surl(other.m_surl), | ||
60 | m_type(other.m_type) | 68 | m_type(other.m_type) | ||
61 | { | 69 | { | ||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |