Index: src/engine/Main.cpp |
diff --git a/src/engine/Main.cpp b/src/engine/Main.cpp |
index 01ddcb6ca49a5ca2dc8dbc692d364abaae0ef70e..8e5be3ca02a6ac3e3309550731e22aa2cf7245b8 100644 |
--- a/src/engine/Main.cpp |
+++ b/src/engine/Main.cpp |
@@ -205,7 +205,12 @@ namespace |
request >> url; |
AdblockPlus::FilterPtr match = filterEngine->Matches(url, |
AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_DOCUMENT, url); |
- response << (match && match->GetType() == AdblockPlus::Filter::TYPE_EXCEPTION); |
+ std::string filterText; |
+ if (match && match->GetType() == AdblockPlus::Filter::TYPE_EXCEPTION) |
+ { |
+ filterText = match->GetProperty("text")->AsString(); |
+ } |
+ response << filterText; |
break; |
} |
case Communication::PROC_IS_ELEMHIDE_WHITELISTED_ON_URL: |