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
8dd07cc3
Commit
8dd07cc3
authored
Jun 29, 2000
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for bug #44040 "sanitycheck.cgi dies if apostrophes in product, component, version,
or milestone". thanks to dave@intrec.com (Dave Miller) for the patch
parent
72c28615
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sanitycheck.cgi
sanitycheck.cgi
+3
-3
No files found.
sanitycheck.cgi
View file @
8dd07cc3
...
...
@@ -188,7 +188,7 @@ while (@row = FetchSQLData()) {
foreach
my
$ref
(
@checklist
)
{
my
(
$product
,
$version
)
=
(
@$ref
);
SendSQL
(
"select count(*) from versions where program =
'$product' and value = '$version'"
);
SendSQL
(
"select count(*) from versions where program =
"
.
SqlQuote
(
$product
)
.
" and value = "
.
SqlQuote
(
$version
)
);
if
(
FetchOneColumn
()
!=
1
)
{
Alert
(
"Bug(s) found with invalid product/version: $product/$version"
);
}
...
...
@@ -206,7 +206,7 @@ while (@row = FetchSQLData()) {
foreach
my
$ref
(
@checklist
)
{
my
(
$product
,
$milestone
)
=
(
@$ref
);
SendSQL
(
"SELECT count(*) FROM milestones WHERE product =
'$product' AND value = '$milestone'"
);
SendSQL
(
"SELECT count(*) FROM milestones WHERE product =
"
.
SqlQuote
(
$product
)
.
" AND value = "
.
SqlQuote
(
$milestone
)
);
if
(
FetchOneColumn
()
!=
1
)
{
Alert
(
"Bug(s) found with invalud product/milestone: $product/$milestone"
);
}
...
...
@@ -225,7 +225,7 @@ while (@row = FetchSQLData()) {
foreach
my
$ref
(
@checklist
)
{
my
(
$product
,
$component
)
=
(
@$ref
);
SendSQL
(
"select count(*) from components where program =
'$product' and value = '$component'"
);
SendSQL
(
"select count(*) from components where program =
"
.
SqlQuote
(
$product
)
.
" and value = "
.
SqlQuote
(
$component
)
);
if
(
FetchOneColumn
()
!=
1
)
{
Alert
(
"Bug(s) found with invalid product/component: $product/$component"
);
}
...
...
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