BUG Patch up the information leak of debug information.
This commit is contained in:
parent
12308ed1de
commit
403ed0a9c9
|
@ -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).'"');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue