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
018ed17c
Commit
018ed17c
authored
Jul 21, 2004
by
kiko%async.com.br
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 251935: Remove $COOKIE from process_bug.cgi. r=joel, a=myk.
parent
4478ac2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
process_bug.cgi
process_bug.cgi
+7
-9
No files found.
process_bug.cgi
View file @
018ed17c
...
...
@@ -46,7 +46,6 @@ use Bugzilla::Flag;
use
vars
qw(%versions
%components
%COOKIE
%legal_opsys
%legal_platform
%legal_priority
...
...
@@ -165,8 +164,8 @@ if (defined($::FORM{'id'})) {
# Set up the vars for nagiavtional <link> elements
my
$next_bug
;
if
(
$
::COOKIE
{
"BUGLIST"
}
&&
$::FORM
{
'id'
})
{
my
@bug_list
=
split
(
/:/
,
$
::COOKIE
{
"BUGLIST"
}
);
if
(
$
cgi
->
cookie
(
"BUGLIST"
)
&&
$::FORM
{
'id'
})
{
my
@bug_list
=
split
(
/:/
,
$
cgi
->
cookie
(
"BUGLIST"
)
);
$vars
->
{
'bug_list'
}
=
\
@bug_list
;
my
$cur
=
lsearch
(
\
@bug_list
,
$::FORM
{
"id"
});
if
(
$cur
>=
0
&&
$cur
<
$#bug_list
)
{
...
...
@@ -1284,7 +1283,7 @@ foreach my $id (@idlist) {
SendSQL
(
"UNLOCK TABLES"
);
ThrowUserError
(
'comment_required'
);
}
else
{
AppendComment
(
$id
,
$::COOKIE
{
'Bugzilla_login'
}
,
$::FORM
{
'comment'
},
AppendComment
(
$id
,
Bugzilla
->
user
->
login
,
$::FORM
{
'comment'
},
$::FORM
{
'commentprivacy'
},
$timestamp
,
$::FORM
{
'work_time'
});
if
(
$::FORM
{
'work_time'
})
{
LogActivityEntry
(
$id
,
"work_time"
,
""
,
$::FORM
{
'work_time'
},
...
...
@@ -1702,7 +1701,7 @@ foreach my $id (@idlist) {
$vars
->
{
'mailrecipients'
}
=
{
'cc'
=>
\
@ccRemoved
,
'owner'
=>
$origOwner
,
'qa'
=>
$origQaContact
,
'changer'
=>
$::COOKIE
{
'Bugzilla_login'
}
};
'changer'
=>
Bugzilla
->
user
->
login
};
$vars
->
{
'id'
}
=
$id
;
...
...
@@ -1728,12 +1727,11 @@ foreach my $id (@idlist) {
SendSQL
(
"INSERT INTO cc (who, bug_id) VALUES ($reporter, "
.
SqlQuote
(
$duplicate
)
.
")"
);
}
# Bug 171639 - Duplicate notifications do not need to be private.
AppendComment
(
$duplicate
,
$::COOKIE
{
'Bugzilla_login'
}
,
"*** Bug $::FORM{'id'} has been marked as a duplicate of this bug. ***"
,
0
);
AppendComment
(
$duplicate
,
Bugzilla
->
user
->
login
,
"*** Bug $::FORM{'id'} has been marked as a duplicate of this bug. ***"
,
0
);
CheckFormFieldDefined
(
\%::
FORM
,
'comment'
);
SendSQL
(
"INSERT INTO duplicates VALUES ($duplicate, $::FORM{'id'})"
);
$vars
->
{
'mailrecipients'
}
=
{
'changer'
=>
$::COOKIE
{
'Bugzilla_login'
}
};
$vars
->
{
'mailrecipients'
}
=
{
'changer'
=>
Bugzilla
->
user
->
login
};
$vars
->
{
'id'
}
=
$duplicate
;
$vars
->
{
'type'
}
=
"dupe"
;
...
...
@@ -1746,7 +1744,7 @@ foreach my $id (@idlist) {
if
(
$check_dep_bugs
)
{
foreach
my
$k
(
keys
(
%
dependencychanged
))
{
$vars
->
{
'mailrecipients'
}
=
{
'changer'
=>
$::COOKIE
{
'Bugzilla_login'
}
};
$vars
->
{
'mailrecipients'
}
=
{
'changer'
=>
Bugzilla
->
user
->
login
};
$vars
->
{
'id'
}
=
$k
;
$vars
->
{
'type'
}
=
"dep"
;
...
...
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