Bug 141006: Run edit*.cgis in taint mode.
Patch by byron jones <bugzilla@glob.com.au> r=jouni, a=justdave git-svn-id: svn://10.0.0.236/trunk@156794 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6a3903cfce
commit
02eb0122e5
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!/usr/bin/perl -wT
|
||||
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!/usr/bin/perl -wT
|
||||
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
||||
|
||||
#
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!/usr/bin/perl -wT
|
||||
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!/usr/bin/perl -wT
|
||||
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!/usr/bin/perl -wT
|
||||
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -w
|
||||
#!/usr/bin/perl -wT
|
||||
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user