From 403ed0a9c9ed7c9e71a5d24046359ef58cae2a64 Mon Sep 17 00:00:00 2001 From: Mateusz Uzdowski Date: Wed, 11 Jun 2014 12:07:09 +1200 Subject: [PATCH] BUG Patch up the information leak of debug information. --- code/solr/SolrIndex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/solr/SolrIndex.php b/code/solr/SolrIndex.php index 2c70ad5..c8b89c5 100644 --- a/code/solr/SolrIndex.php +++ b/code/solr/SolrIndex.php @@ -406,7 +406,7 @@ abstract class SolrIndex extends SearchIndex { $fq[] = ($missing ? "+{$field}:[* TO *] " : '') . '-('.implode(' ', $excludeq).')'; } - if(!headers_sent()) { + if(!headers_sent() && !Director::isLive()) { if ($q) header('X-Query: '.implode(' ', $q)); if ($fq) header('X-Filters: "'.implode('", "', $fq).'"'); }