Index: src/plugin/PluginWbPassThrough.cpp |
=================================================================== |
--- a/src/plugin/PluginWbPassThrough.cpp |
+++ b/src/plugin/PluginWbPassThrough.cpp |
@@ -150,19 +150,7 @@ |
HRESULT hr = pOIBindInfo->GetBindString(BINDSTRING_XDR_ORIGIN, &domainRetrieved, 1, &resLen); |
if ((hr == S_OK) && domainRetrieved && (resLen > 0)) |
{ |
- boundDomain.SetString(domainRetrieved); |
- // Remove protocol |
- int pos = boundDomain.Find(L"://"); |
- if (pos > 0) |
- { |
- boundDomain = boundDomain.Mid(pos + 3); |
- } |
- // Remove port |
- pos = boundDomain.Find(L":"); |
- if (pos > 0) |
- { |
- boundDomain.Left(pos); |
- } |
+ boundDomain = CAdblockPlusClient::GetInstance()->GetHostFromUrl(domainRetrieved).c_str(); |
} |
} |
} |