Reviewed by Steve Falkenburg
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 19:26:27 +0000 (19:26 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 19:26:27 +0000 (19:26 +0000)
        <rdar://problem/5012636> - WebURLProtectionSpace::realm returns the hostname rather than the authentication realm

        * platform/network/ProtectionSpace.cpp:
        (WebCore::ProtectionSpace::ProtectionSpace): Assign the realm to m_realm, instead of the host

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

WebCore/ChangeLog
WebCore/platform/network/ProtectionSpace.cpp

index 3468764e3b2a7e587e64c98777cfeac9c2a6dad9..7b313e4b3731b6a44ea2ebdfd4233551b610a7e8 100644 (file)
@@ -1,3 +1,12 @@
+2007-12-12  Brady Eidson  <beidson@apple.com>
+
+        Reviewed by Steve Falkenburg 
+
+        <rdar://problem/5012636> - WebURLProtectionSpace::realm returns the hostname rather than the authentication realm
+
+        * platform/network/ProtectionSpace.cpp:
+        (WebCore::ProtectionSpace::ProtectionSpace): Assign the realm to m_realm, instead of the host
+
 2007-12-12  Alp Toker  <alp@atoker.com>
 
         Reviewed by Maciej.
index dff3c25c4c2efaa109bd654943f279d4ed51762c..a6aa75ac1613477b410aa3dbb6a5cccbe22ab926 100644 (file)
@@ -41,7 +41,7 @@ ProtectionSpace::ProtectionSpace(const String& host, int port, ProtectionSpaceSe
     : m_host(host.length() ? host : "")
     , m_port(port)
     , m_serverType(serverType)
-    , m_realm(realm.length() ? host : "")
+    , m_realm(realm.length() ? realm : "")
     , m_authenticationScheme(authenticationScheme)
 {    
 }