diff options
Diffstat (limited to 'WebCore/platform/network/CredentialStorage.cpp')
-rw-r--r-- | WebCore/platform/network/CredentialStorage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/platform/network/CredentialStorage.cpp b/WebCore/platform/network/CredentialStorage.cpp index 38f71a4..428181d 100644 --- a/WebCore/platform/network/CredentialStorage.cpp +++ b/WebCore/platform/network/CredentialStorage.cpp @@ -29,7 +29,7 @@ #include "Credential.h" #include "KURL.h" #include "ProtectionSpaceHash.h" -#include <wtf/text/CString.h> +#include <wtf/text/StringConcatenate.h> #include <wtf/text/StringHash.h> #include <wtf/HashMap.h> #include <wtf/HashSet.h> @@ -60,9 +60,9 @@ static PathToDefaultProtectionSpaceMap& pathToDefaultProtectionSpaceMap() static String originStringFromURL(const KURL& url) { if (url.port()) - return url.protocol() + "://" + url.host() + String::format(":%i/", url.port()); - - return url.protocol() + "://" + url.host() + "/"; + return makeString(url.protocol(), "://", url.host(), ':', String::number(url.port()), '/'); + + return makeString(url.protocol(), "://", url.host(), '/'); } static String protectionSpaceMapKeyFromURL(const KURL& url) |