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
39e9e3e6
Commit
39e9e3e6
authored
May 23, 2004
by
jouni%heikniemi.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 141006: Run edit*.cgis in taint mode.
Patch by byron jones <bugzilla@glob.com.au> r=jouni, a=justdave
parent
9b2916c3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
13 deletions
+8
-13
editcomponents.cgi
editcomponents.cgi
+1
-1
editmilestones.cgi
editmilestones.cgi
+1
-1
editparams.cgi
editparams.cgi
+1
-1
editproducts.cgi
editproducts.cgi
+1
-1
editusers.cgi
editusers.cgi
+1
-1
editversions.cgi
editversions.cgi
+1
-1
002goodperl.t
t/002goodperl.t
+2
-7
No files found.
editcomponents.cgi
View file @
39e9e3e6
#!/usr/bin/perl -w
#!/usr/bin/perl -w
T
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
...
...
editmilestones.cgi
View file @
39e9e3e6
#!/usr/bin/perl -w
#!/usr/bin/perl -w
T
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
...
...
editparams.cgi
View file @
39e9e3e6
#!/usr/bin/perl -w
#!/usr/bin/perl -w
T
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
...
...
editproducts.cgi
View file @
39e9e3e6
#!/usr/bin/perl -w
#!/usr/bin/perl -w
T
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
...
...
editusers.cgi
View file @
39e9e3e6
#!/usr/bin/perl -w
#!/usr/bin/perl -w
T
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
...
...
editversions.cgi
View file @
39e9e3e6
#!/usr/bin/perl -w
#!/usr/bin/perl -w
T
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
...
...
t/002goodperl.t
View file @
39e9e3e6
...
...
@@ -59,13 +59,8 @@ foreach my $file (@testitems) {
ok
(
0
,
"$file is a module, but has a shebang"
);
next
;
}
elsif
(
$ext
eq
"cgi"
)
{
# cgi files must be taint checked, but only the user-accessible
# ones have been checked so far
if
(
$file
=~
m/^edit/
)
{
$flags
=
"w"
;
}
else
{
$flags
=
"wT"
;
}
# cgi files must be taint checked
$flags
=
"wT"
;
}
else
{
ok
(
0
,
"$file has shebang but unknown extension"
);
next
;
...
...
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