3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-07-22 13:27:33 +02:00

applets/trans.pl: restrict allowed options

This commit is contained in:
Pragmatic Software 2025-07-19 09:18:45 -07:00
parent cff8d5fe70
commit 66ce01a0c3
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 3 additions and 3 deletions

4
applets/trans.pl vendored
View File

@ -14,10 +14,10 @@ my $args = quotemeta "@ARGV";
$args =~ s/\\([ :-])/$1/g;
$args =~ s/^\s+|\s+$//g;
my $opts = '-j -no-ansi -no-autocorrect';
my $opts = '-j -no-ansi -no-autocorrect -no-browser -no-pager -no-play';
$opts .= ' -b' unless $args =~ /^-/;
if ($args =~ m/-pager/) {
if ($args =~ m/-(pager|browser|player|download|p|I|interactive|shell|emacs|E|x|4|6|ipv|inet|u|U|upgrade|user)/) {
print "I don't think so.\n";
exit;
}

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4873,
BUILD_REVISION => 4874,
BUILD_DATE => "2025-07-19",
};