[BlackBerry] User credentials is not correctly handled
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Feb 2013 16:41:59 +0000 (16:41 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Feb 2013 16:41:59 +0000 (16:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=110994

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-02-28
Reviewed by Yong Li.

WTF::String::utf8 no longer receives a bool, see r134173.

* platform/network/blackberry/CredentialBackingStore.cpp:
(WebCore::CredentialBackingStore::encryptedString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144316 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/network/blackberry/CredentialBackingStore.cpp

index 913dbd3..9978808 100644 (file)
@@ -1,3 +1,15 @@
+2013-02-28  Alberto Garcia  <agarcia@igalia.com>
+
+        [BlackBerry] User credentials is not correctly handled
+        https://bugs.webkit.org/show_bug.cgi?id=110994
+
+        Reviewed by Yong Li.
+
+        WTF::String::utf8 no longer receives a bool, see r134173.
+
+        * platform/network/blackberry/CredentialBackingStore.cpp:
+        (WebCore::CredentialBackingStore::encryptedString):
+
 2013-02-28  Lianghui Chen  <liachen@rim.com>
 
         [BlackBerry] User credentials are not correctly handled for non-browser usage
 2013-02-28  Lianghui Chen  <liachen@rim.com>
 
         [BlackBerry] User credentials are not correctly handled for non-browser usage
index 0e19587..83cdbb4 100644 (file)
@@ -409,7 +409,7 @@ bool CredentialBackingStore::clearNeverRemember()
 
 String CredentialBackingStore::encryptedString(const String& plainText) const
 {
 
 String CredentialBackingStore::encryptedString(const String& plainText) const
 {
-    WTF::CString utf8 = plainText.utf8(true);
+    WTF::CString utf8 = plainText.utf8(String::StrictConversion);
     std::string cipherText;
     BlackBerry::Platform::Encryptor::encryptString(std::string(utf8.data(), utf8.length()), &cipherText);
     return String(cipherText.data(), cipherText.length());
     std::string cipherText;
     BlackBerry::Platform::Encryptor::encryptString(std::string(utf8.data(), utf8.length()), &cipherText);
     return String(cipherText.data(), cipherText.length());