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