Index: src/plugin/PluginTabBase.cpp |
=================================================================== |
--- a/src/plugin/PluginTabBase.cpp |
+++ b/src/plugin/PluginTabBase.cpp |
@@ -25,6 +25,17 @@ |
int CPluginTabBase::s_configVersion = 0; |
#endif |
+namespace |
+{ |
+ CString ExtractDomain(const CString& url) |
+ { |
+ int pos = 0; |
+ CString scheme = url.Find('/', pos) >= 0 ? url.Tokenize(L"/", pos) : L""; |
+ CString domain = url.Tokenize(L"/", pos); |
+ domain.MakeLower(); |
+ return domain; |
+ } |
+} |
CPluginTabBase::CPluginTabBase(CPluginClass* plugin) : m_plugin(plugin), m_isActivated(false) |
{ |
@@ -261,7 +272,7 @@ |
m_criticalSection.Lock(); |
{ |
m_documentUrl = url; |
- m_documentDomain = CPluginClient::ExtractDomain(url); |
+ m_documentDomain = ExtractDomain(url); |
domain = m_documentDomain; |
} |