mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Un-taint mdir before adding to @INC https://sourceforge.net/tracker/index.php?func=detail&aid=3558014&group_id=17457&atid=117457#
This commit is contained in:
@@ -3285,6 +3285,8 @@ foreach my $f (@files) {
|
||||
}
|
||||
my @OLDINC = @INC;
|
||||
my $mdir = &module_root_directory($mod);
|
||||
$mdir =~ /^(.*)$/; # untaint, part 1
|
||||
$mdir = $1; # untaint, part 2
|
||||
@INC = &unique($mdir, @INC);
|
||||
-d $mdir || &error("Module $mod does not exist");
|
||||
if (!&get_module_name() && $mod) {
|
||||
|
||||
Reference in New Issue
Block a user