3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-17 09:29:30 +01:00

pbot-vm: Preserve escapes in -args and -stdin

This commit is contained in:
Pragmatic Software 2024-10-01 13:08:52 -07:00
parent 6002c93d60
commit 9192b7bfad
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
3 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ sub postprocess {
my $ulimits = "ulimit -f 2000; ulimit -t 8; ulimit -u 200";
my @args = $self->split_line($self->{arguments}, strip_quotes => 1, preserve_escapes => 0);
my @args = $self->split_line($self->{arguments}, strip_quotes => 1, preserve_escapes => 1);
my $quoted_args = '';

View File

@ -217,7 +217,7 @@ sub split_line {
sub quote_args {
my ($self, $text) = @_;
my @args = $self->split_line($text, strip_quotes => 1, preserve_escapes => 0);
my @args = $self->split_line($text, strip_quotes => 1, preserve_escapes => 1);
my $quoted = '';

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4791,
BUILD_DATE => "2024-09-28",
BUILD_REVISION => 4793,
BUILD_DATE => "2024-10-01",
};
sub initialize {}