patch 9.2.0141: :perl ex commands allowed in restricted mode
Commit:
https://github.com/vim/vim/commit/c5f283d64140112e4536ac85c15bd7caad980732
Author: Christian Brabandt <[email protected]>
Date: Wed Mar 11 21:50:48 2026 +0000
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 <[email protected]>
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index f51f584e0..7613d18aa 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -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,
diff --git a/src/version.c b/src/version.c
index 8c1f6c30a..a3ef8c1c9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 141,
/**/
140,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1w0iDi-001vgX-Jc%40256bit.org.