mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
patch 9.2.0141: :perl ex commands allowed in restricted mode
Problem: :perl ex commands allowed in restricted mode (pyllyukko) Solution: Add EX_RESTRICT flag to :perldo/:perl command definition. closes: #19653 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
+2
-2
@@ -1158,10 +1158,10 @@ EXCMD(CMD_pclose, "pclose", ex_pclose,
|
||||
EX_BANG|EX_TRLBAR,
|
||||
ADDR_NONE),
|
||||
EXCMD(CMD_perl, "perl", ex_perl,
|
||||
EX_RANGE|EX_EXTRA|EX_DFLALL|EX_NEEDARG|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK,
|
||||
EX_RANGE|EX_EXTRA|EX_DFLALL|EX_NEEDARG|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK|EX_RESTRICT,
|
||||
ADDR_LINES),
|
||||
EXCMD(CMD_perldo, "perldo", ex_perldo,
|
||||
EX_RANGE|EX_EXTRA|EX_DFLALL|EX_NEEDARG|EX_CMDWIN|EX_LOCK_OK,
|
||||
EX_RANGE|EX_EXTRA|EX_DFLALL|EX_NEEDARG|EX_CMDWIN|EX_LOCK_OK|EX_RESTRICT,
|
||||
ADDR_LINES),
|
||||
EXCMD(CMD_pedit, "pedit", ex_pedit,
|
||||
EX_BANG|EX_FILE1|EX_CMDARG|EX_ARGOPT|EX_TRLBAR,
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
141,
|
||||
/**/
|
||||
140,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user