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
6b975d4e
Commit
6b975d4e
authored
Mar 06, 2004
by
jocuri%softhome.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch for bug 234875: use ->param in quips.cgi; r=kiko, a=justdave.
parent
d0050300
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
quips.cgi
quips.cgi
+4
-4
No files found.
quips.cgi
View file @
6b975d4e
...
...
@@ -45,7 +45,7 @@ if (Param('enablequips') eq "off") {
ThrowUserError
(
"quips_disabled"
);
}
my
$action
=
$
::FORM
{
'action'
}
||
""
;
my
$action
=
$
cgi
->
param
(
'action'
)
||
""
;
if
(
$action
eq
"show"
)
{
# Read in the entire quip list
...
...
@@ -81,7 +81,7 @@ if ($action eq "add") {
# Add the quip
my
$approved
=
(
Param
(
'enablequips'
)
eq
"on"
)
?
'1'
:
'0'
;
$approved
=
1
if
(
UserInGroup
(
'admin'
));
my
$comment
=
$
::FORM
{
"quip"
}
;
my
$comment
=
$
cgi
->
param
(
"quip"
)
;
$comment
||
ThrowUserError
(
"need_quip"
);
$comment
!~
m/</
||
ThrowUserError
(
"no_html_in_quips"
);
...
...
@@ -104,7 +104,7 @@ if ($action eq 'approve') {
my
@approved
;
my
@unapproved
;
foreach
my
$quipid
(
keys
%
quips
)
{
my
$form
=
(
$::FORM
{
'quipid_'
.
$quipid
}
)
?
1
:
0
;
my
$form
=
$cgi
->
param
(
'quipid_'
.
$quipid
)
?
1
:
0
;
if
(
$quips
{
$quipid
}
ne
$form
)
{
if
(
$form
)
{
push
(
@approved
,
$quipid
);
}
else
{
push
(
@unapproved
,
$quipid
);
}
...
...
@@ -122,7 +122,7 @@ if ($action eq "delete") {
if
(
!
UserInGroup
(
'admin'
))
{
ThrowUserError
(
"quips_edit_denied"
);
}
my
$quipid
=
$
::FORM
{
"quipid"
}
;
my
$quipid
=
$
cgi
->
param
(
"quipid"
)
;
ThrowCodeError
(
"need_quipid"
)
unless
$quipid
=~
/(\d+)/
;
$quipid
=
$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