Commit aff8d1c2 authored by mdm@chromium.org's avatar mdm@chromium.org

Mac: speculative fix for bug 105759 based on the assumption that we have a...

Mac: speculative fix for bug 105759 based on the assumption that we have a realm with an empty path.

BUG=105759
Review URL: http://codereview.chromium.org/8733002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112339 0039d316-1c4b-4281-b951-d872f2087c98
parent a419752b
......@@ -687,7 +687,10 @@ bool MacKeychainPasswordFormAdapter::ExtractSignonRealmComponents(
*port = realm_as_url.has_port() ? atoi(realm_as_url.port().c_str()) : 0;
if (security_domain) {
// Strip the leading '/' off of the path to get the security domain.
*security_domain = realm_as_url.path().substr(1);
if (realm_as_url.path().length() > 0)
*security_domain = realm_as_url.path().substr(1);
else
security_domain->clear();
}
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment