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
3bdb6be5
Commit
3bdb6be5
authored
Jun 28, 2003
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 193575 - Internal server error from votes.cgi
patch by bugzilla@chimpychompy.org (GavinS) r=bbaetz, a=justdave
parent
4f6b75a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
votes.cgi
votes.cgi
+6
-1
No files found.
votes.cgi
View file @
3bdb6be5
...
...
@@ -135,7 +135,8 @@ sub show_user {
# special error handling should go away.
$who
||
ThrowUserError
(
"invalid_username"
,
{
name
=>
$name
});
my
$canedit
=
1
if
(
$name
eq
Bugzilla
->
user
->
login
);
my
$canedit
=
1
if
(
Bugzilla
->
user
&&
$name
eq
Bugzilla
->
user
->
login
);
SendSQL
(
"LOCK TABLES bugs READ, products READ, votes WRITE,
cc READ, bug_group_map READ, user_group_map READ,
...
...
@@ -200,6 +201,10 @@ sub show_user {
opened
=>
IsOpenedState
(
$status
)
});
}
# In case we didn't populate this earlier (i.e. an error, or
# a not logged in user viewing a users votes)
$maxvotesperbug
{
$product
}
||=
0
;
$onevoteonly
=
1
if
(
min
(
$::prodmaxvotes
{
$product
},
$maxvotesperbug
{
$product
})
==
1
);
...
...
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