Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
2abdcce7
Commit
2abdcce7
authored
Mar 07, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 547863: Stop supporting upgrades from 2.8
r=LpSolit, a=mkanat
parent
a6714f8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
44 deletions
+6
-44
rel_notes.txt
docs/en/rel_notes.txt
+6
-6
query.cgi
query.cgi
+0
-38
No files found.
docs/en/rel_notes.txt
View file @
2abdcce7
...
...
@@ -3019,10 +3019,10 @@ known to us after the Bugzilla 2.14 release.
*** USERS UPGRADING FROM 2.8 OR EARLIER ***
*******************************************
Release notes were not compiled for versions of Bugzilla before
2.12.
The file 'UPGRADING-pre-2.8' contains instructions you may
need to perform in addition to running 'checksetup.pl' if you
are running a pre 2.8 version.
This version of Bugzilla cannot upgrade from version 2.8 (released
November 19, 1999). You will first have to upgrade to Bugzilla 3.6 and
then upgrade to the latest release.
If you are upgrading from a version earlier than 2.8, See the
PGRADING-pre-2.8 file in Bugzilla 3.0 for information
on upgrading from a version that is earlier than 2.8.
query.cgi
View file @
2abdcce7
...
...
@@ -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"
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment