aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-02-20 14:12:49 +0000
committerlpsolit%gmail.com <>2009-02-20 14:12:49 +0000
commit4192ccfd0318d1772df6ff58ad06966ddd0c5449 (patch)
tree3b14b20735ab063695921685bcba332c93da29e1 /Bugzilla/DB.pm
parentBug 479228: Duplicated words in the error message in importxml.pl when the de... (diff)
downloadbugzilla-4192ccfd0318d1772df6ff58ad06966ddd0c5449.tar.gz
bugzilla-4192ccfd0318d1772df6ff58ad06966ddd0c5449.tar.bz2
bugzilla-4192ccfd0318d1772df6ff58ad06966ddd0c5449.zip
Bug 477459: buglist.cgi crashes for logged out users if the "Reporter" column is displayed - Patches by Frédéric Buclin <LpSolit@gmail.com> and Xiaoou <xiaoou.wu@oracle.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r--Bugzilla/DB.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 81a720ee5..f7d00f3b3 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -52,7 +52,7 @@ use Storable qw(dclone);
use constant BLOB_TYPE => DBI::SQL_BLOB;
use constant ISOLATION_LEVEL => 'REPEATABLE READ';
-use constant GROUPBY_REGEXP => '(?:.*\s+AS\s+)?(\w+(\.\w+)?)(?:\s+(ASC|DESC))?$';
+use constant GROUPBY_REGEXP => '(?:.*\s+AS\s+|SUBSTRING\()?(\w+(\.\w+)?)(?:\s+(ASC|DESC|FROM\s+.+))?$';
# Set default values for what used to be the enum types. These values
# are no longer stored in localconfig. If we are upgrading from a