Merge pull request #47 from mateusz/info-leak

Info leak
This commit is contained in:
Damian Mooyman 2014-06-11 12:18:29 +12:00
commit 9629f0e0f5
1 changed files with 1 additions and 1 deletions

View File

@ -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).'"');
}