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
0b990337
Commit
0b990337
authored
Mar 18, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 256513: Fix usage of grep (/$value/, @array);
Patch By Olav Vitters <bugzilla-mozilla@bkor.dhs.org> r=mkanat, a=justdave
parent
675c4bb9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
DB.pm
Bugzilla/DB.pm
+1
-1
Template.pm
Bugzilla/Template.pm
+1
-1
checksetup.pl
checksetup.pl
+1
-1
importxml.pl
importxml.pl
+11
-11
No files found.
Bugzilla/DB.pm
View file @
0b990337
...
...
@@ -312,7 +312,7 @@ sub bz_setup_database {
my
@desired_tables
=
$self
->
_bz_schema
->
get_table_list
();
foreach
my
$table_name
(
@desired_tables
)
{
next
if
grep
/^$table_name$/
,
@current_tables
;
next
if
grep
(
$_
eq
$table_name
,
@current_tables
)
;
print
"Creating table $table_name ...\n"
;
my
@table_sql
=
$self
->
_bz_schema
->
get_table_ddl
(
$table_name
);
...
...
Bugzilla/Template.pm
View file @
0b990337
...
...
@@ -117,7 +117,7 @@ sub getTemplateIncludePath () {
# 'en-uk' etc. but not the otherway round. (This is unfortunally
# not very clearly stated in those RFC; see comment just over 14.5
# in http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)
if
(
my
@found
=
grep
/^
$lang
(-.+)?$/i
,
@languages
)
{
if
(
my
@found
=
grep
/^
\Q$lang\E
(-.+)?$/i
,
@languages
)
{
push
(
@usedlanguages
,
@found
);
}
}
...
...
checksetup.pl
View file @
0b990337
...
...
@@ -773,7 +773,7 @@ if ($my_webservergroup && !$silent) {
# that we can't chgrp to
my
$webservergid
=
(
getgrnam
(
$my_webservergroup
))[
2
]
or
die
(
"no such group: $my_webservergroup"
);
if
(
$<
!=
0
&&
!
grep
(
/^$webservergid$/
,
split
(
" "
,
$
))))
{
if
(
$<
!=
0
&&
!
grep
(
$_
eq
$webservergid
,
split
(
" "
,
$
))))
{
print
<<EOF;
Warning: you have entered a value for the "webservergroup" parameter in
...
...
importxml.pl
View file @
0b990337
...
...
@@ -422,8 +422,8 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
}
if
(
defined
(
$::versions
{
$product
[
0
]}
)
&&
(
my
@version
=
grep
/^$bug_fields{'version'}$/i
,
@
{
$::versions
{
$product
[
0
]}})
){
(
my
@version
=
grep
(
lc
(
$_
)
eq
lc
(
$bug_fields
{
'version'
})
,
@
{
$::versions
{
$product
[
0
]}})
)
){
push
(
@values
,
SqlQuote
(
$version
[
0
])
);
push
(
@query
,
"version"
);
}
else
{
...
...
@@ -434,7 +434,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
}
if
(
defined
(
$bug_fields
{
'priority'
})
&&
(
my
@priority
=
grep
/^$bug_fields{'priority'}$/i
,
@::legal_priority
)
){
(
my
@priority
=
grep
(
lc
(
$_
)
eq
lc
(
$bug_fields
{
'priority'
}),
@::legal_priority
)
)
){
push
(
@values
,
SqlQuote
(
$priority
[
0
])
);
push
(
@query
,
"priority"
);
}
else
{
...
...
@@ -446,7 +446,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
}
if
(
defined
(
$bug_fields
{
'rep_platform'
})
&&
(
my
@platform
=
grep
/^$bug_fields{'rep_platform'}$/i
,
@::legal_platform
)
){
(
my
@platform
=
grep
(
lc
(
$_
)
eq
lc
(
$bug_fields
{
'rep_platform'
}),
@::legal_platform
)
)
){
push
(
@values
,
SqlQuote
(
$platform
[
0
])
);
push
(
@query
,
"rep_platform"
);
}
else
{
...
...
@@ -459,7 +459,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
}
if
(
defined
(
$bug_fields
{
'op_sys'
})
&&
(
my
@opsys
=
grep
/^$bug_fields{'op_sys'}$/i
,
@::legal_opsys
)
){
(
my
@opsys
=
grep
(
lc
(
$_
)
eq
lc
(
$bug_fields
{
'op_sys'
}),
@::legal_opsys
)
)
){
push
(
@values
,
SqlQuote
(
$opsys
[
0
])
);
push
(
@query
,
"op_sys"
);
}
else
{
...
...
@@ -472,8 +472,8 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
if
(
Param
(
"usetargetmilestone"
))
{
if
(
defined
(
$::target_milestone
{
$product
[
0
]}
)
&&
(
my
@tm
=
grep
/^$bug_fields{'target_milestone'}$/i
,
@
{
$::target_milestone
{
$product
[
0
]}})
){
(
my
@tm
=
grep
(
lc
(
$_
)
eq
lc
(
$bug_fields
{
'target_milestone'
})
,
@
{
$::target_milestone
{
$product
[
0
]}})
)
){
push
(
@values
,
SqlQuote
(
$tm
[
0
])
);
push
(
@query
,
"target_milestone"
);
}
else
{
...
...
@@ -492,8 +492,8 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
}
if
(
defined
(
$bug_fields
{
'bug_severity'
})
&&
(
my
@severity
=
grep
/^$bug_fields{'bug_severity'}$/i
,
@::legal_severity
)
){
(
my
@severity
=
grep
(
lc
(
$_
)
eq
lc
(
$bug_fields
{
'bug_severity'
})
,
@::legal_severity
)
)
){
push
(
@values
,
SqlQuote
(
$severity
[
0
])
);
push
(
@query
,
"bug_severity"
);
}
else
{
...
...
@@ -543,7 +543,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
my
@resolution
;
if
(
defined
(
$bug_fields
{
'resolution'
})
&&
(
@resolution
=
grep
/^$bug_fields{'resolution'}$/i
,
@::legal_resolution
)
){
(
@resolution
=
grep
(
lc
(
$_
)
eq
lc
(
$bug_fields
{
'resolution'
}),
@::legal_resolution
)
)
){
push
(
@values
,
SqlQuote
(
$resolution
[
0
])
);
push
(
@query
,
"resolution"
);
}
elsif
(
(
defined
$bug_fields
{
'resolution'
})
&&
(
!
$resolution
[
0
])
){
...
...
@@ -571,7 +571,7 @@ for (my $k=1 ; $k <= $bugqty ; $k++) {
$bug_fields
{
'bug_status'
}:
"unknown"
;
$err
.=
"\".\n"
;
}
elsif
(
defined
(
$bug_fields
{
'bug_status'
})
&&
(
my
@status
=
grep
/^$bug_fields{'bug_status'}$/i
,
@::legal_bug_status
)
){
(
my
@status
=
grep
(
lc
(
$_
)
eq
lc
(
$bug_fields
{
'bug_status'
}),
@::legal_bug_status
)
)
){
#if a bug status was set then use it, if its legal
push
(
@values
,
SqlQuote
(
$status
[
0
]));
push
(
@query
,
"bug_status"
);
...
...
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