aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-07 18:20:01 -0800
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-07 18:20:01 -0800
commit2abdcce7198d183aa05da2d2018d555cf27113a4 (patch)
tree1ce65527b034575ef6ef6f7b2acc19132660a8ca /query.cgi
parentBug 549588: Documentation incorrectly refers to localconfig for priorities, s... (diff)
downloadbugzilla-2abdcce7198d183aa05da2d2018d555cf27113a4.tar.gz
bugzilla-2abdcce7198d183aa05da2d2018d555cf27113a4.tar.bz2
bugzilla-2abdcce7198d183aa05da2d2018d555cf27113a4.zip
Bug 547863: Stop supporting upgrades from 2.8
r=LpSolit, a=mkanat
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi38
1 files changed, 0 insertions, 38 deletions
diff --git a/query.cgi b/query.cgi
index 101c90700..d45a950b2 100755
--- a/query.cgi
+++ b/query.cgi
@@ -49,44 +49,6 @@ my $buffer = $cgi->query_string();
my $user = Bugzilla->login();
my $userid = $user->id;
-# Backwards compatibility hack -- if there are any of the old QUERY_*
-# cookies around, and we are logged in, then move them into the database
-# and nuke the cookie. This is required for Bugzilla 2.8 and earlier.
-if ($userid) {
- my @oldquerycookies;
- foreach my $i ($cgi->cookie()) {
- if ($i =~ /^QUERY_(.*)$/) {
- push(@oldquerycookies, [$1, $i, $cgi->cookie($i)]);
- }
- }
- if (defined $cgi->cookie('DEFAULTQUERY')) {
- push(@oldquerycookies, [DEFAULT_QUERY_NAME, 'DEFAULTQUERY',
- $cgi->cookie('DEFAULTQUERY')]);
- }
- if (@oldquerycookies) {
- foreach my $ref (@oldquerycookies) {
- my ($name, $cookiename, $value) = (@$ref);
- if ($value) {
- # If the query name contains invalid characters, don't import.
- $name =~ /[<>&]/ && next;
- trick_taint($name);
- $dbh->bz_start_transaction();
- my $query = $dbh->selectrow_array(
- "SELECT query FROM namedqueries " .
- "WHERE userid = ? AND name = ?",
- undef, ($userid, $name));
- if (!$query) {
- $dbh->do("INSERT INTO namedqueries " .
- "(userid, name, query) VALUES " .
- "(?, ?, ?)", undef, ($userid, $name, $value));
- }
- $dbh->bz_commit_transaction();
- }
- $cgi->remove_cookie($cookiename);
- }
- }
-}
-
if ($cgi->param('nukedefaultquery')) {
if ($userid) {
$dbh->do("DELETE FROM namedqueries" .