[BlackBerry] User credentials is not correctly handled
[WebKit-https.git] / Source / WebCore / platform / network / blackberry / CredentialBackingStore.cpp
index 0e19587179a594ba6084f7a6c0a9a0267388a671..83cdbb4f005a41b3e9e14f28252e753fcc71f28d 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());