prtwash: escape metacharacters in pkgfile variables
This commit is contained in:
@@ -127,6 +127,9 @@ sub parse_pkgfile {
|
||||
}
|
||||
}
|
||||
close(PIPE);
|
||||
# thanks GazL for the reminder to escape any metacharacters
|
||||
$name =~ s/[.+]/\\$&/g;
|
||||
$version =~ s/[.+]/\\$&/g;
|
||||
return \$name, \$version, \$release, \@source, \@renames;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user