We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5bc758 commit e249ec8Copy full SHA for e249ec8
Build/Apk.pm
@@ -140,7 +140,7 @@ sub expandvars {
140
sub quote {
141
my ($str, $q, $vars) = @_;
142
$str = expandvars($str, $vars) if $q ne "'" && $str =~ /\$/;
143
- $str =~ s/([ \t\"\'\$#])/sprintf("%%%02X", ord($1))/ge;
+ $str =~ s/([ \n\t\"\'\$#])/sprintf("%%%02X", ord($1))/ge;
144
$str = "%00" if $str eq ''; # so that split sees something
145
return $str;
146
}
@@ -159,7 +159,7 @@ sub unquotesplit {
159
160
161
$str = expandvars($str, $vars) if $str =~ /\$/;
162
- my @args = split(/[ \t]+/, $str);
+ my @args = split(/[ \t\n]+/, $str);
163
for (@args) {
164
s/%([a-fA-F0-9]{2})/$1 ne '00' ? chr(hex($1)) : ''/ge;
165
0 commit comments