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