bug 842742 - don't allow '..' in logfile. r=justdave
git-svn-id: svn://10.0.0.236/trunk@264780 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -72,6 +72,10 @@ if (defined($args = $form{log}) or defined($args = $form{exerpt})) {
|
||||
$logfile = shell_escape($form{logfile});
|
||||
$buildname = $form{buildname};
|
||||
$buildtime = $form{buildtime};
|
||||
# bug 842742
|
||||
if ($logfile =~ /\.\./) {
|
||||
die "Illegal logfile parameter $logfile";
|
||||
}
|
||||
}
|
||||
$fulltext = $form{fulltext};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user