From 73a4dd56109c4799fd1d4ac7ed56ff72a47279bb Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 1 Aug 2008 05:37:15 +0000 Subject: Bug 440188: buglist.cgi should display EXPLAIN output when &debug=1 Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- buglist.cgi | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 86147869b..114523286 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -994,6 +994,13 @@ elsif ($fulltext) { if ($cgi->param('debug')) { $vars->{'debug'} = 1; $vars->{'query'} = $query; + # Explains are limited to admins because you could use them to figure + # out how many hidden bugs are in a particular product (by doing + # searches and looking at the number of rows the explain says it's + # examining). + if (Bugzilla->user->in_group('admin')) { + $vars->{'query_explain'} = $dbh->bz_explain($query); + } $vars->{'debugdata'} = $search->getDebugData(); } -- cgit v1.2.3-24-g4f1b