mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-14 06:57:25 +02:00
applets/trans.pl: restrict allowed options
This commit is contained in:
parent
cff8d5fe70
commit
66ce01a0c3
4
applets/trans.pl
vendored
4
applets/trans.pl
vendored
@ -14,10 +14,10 @@ my $args = quotemeta "@ARGV";
|
|||||||
$args =~ s/\\([ :-])/$1/g;
|
$args =~ s/\\([ :-])/$1/g;
|
||||||
$args =~ s/^\s+|\s+$//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 =~ /^-/;
|
$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";
|
print "I don't think so.\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4873,
|
BUILD_REVISION => 4874,
|
||||||
BUILD_DATE => "2025-07-19",
|
BUILD_DATE => "2025-07-19",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user