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
70486766
Commit
70486766
authored
Mar 02, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 238802 : Input filter for integer sort key gives bad error output
Patch by Frederic Buclin <LpSolit@gmail.com> r=mkanat a=justdave
parent
62383feb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
editflagtypes.cgi
editflagtypes.cgi
+6
-2
No files found.
editflagtypes.cgi
View file @
70486766
...
...
@@ -445,8 +445,10 @@ sub deactivate {
################################################################################
sub
validateID
{
# $::FORM{'id'} is destroyed if detaint_natural fails.
my
$flagtype_id
=
$::FORM
{
'id'
};
detaint_natural
(
$::FORM
{
'id'
})
||
ThrowCodeError
(
"flag_type_id_invalid"
,
{
id
=>
$
::FORM
{
'id'
}
});
||
ThrowCodeError
(
"flag_type_id_invalid"
,
{
id
=>
$
flagtype_id
});
SendSQL
(
"SELECT 1 FROM flagtypes WHERE id = $::FORM{'id'}"
);
FetchOneColumn
()
...
...
@@ -499,10 +501,12 @@ sub validateComponent {
}
sub
validateSortKey
{
# $::FORM{'sortkey'} is destroyed if detaint_natural fails.
my
$sortkey
=
$::FORM
{
'sortkey'
};
detaint_natural
(
$::FORM
{
'sortkey'
})
&&
$::FORM
{
'sortkey'
}
<
32768
||
ThrowUserError
(
"flag_type_sortkey_invalid"
,
{
sortkey
=>
$
::FORM
{
'sortkey'
}
});
{
sortkey
=>
$
sortkey
});
}
sub
validateTargetType
{
...
...
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