summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-12-23 16:15:50 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-12-23 16:15:50 +0000
commit10250113e7a9436d0e11467beb33a1b1c5888098 (patch)
tree43df92068e4593a17f72ee24bcd97c8c21825583 /op.c
parent25aae3a72e52ac6a70711f3dce68629d59f1cf87 (diff)
downloadperl-10250113e7a9436d0e11467beb33a1b1c5888098.tar.gz
Fix #6006 for taint mode too.
p4raw-id: //depot/perl@29619
Diffstat (limited to 'op.c')
-rw-r--r--op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index 626f3e820b..8aca413e11 100644
--- a/op.c
+++ b/op.c
@@ -3314,6 +3314,7 @@ Perl_pmruntime(pTHX_ OP *o, OP *expr, bool isreg)
OP *lastop = NULL;
for (curop = LINKLIST(repl); curop!=repl; curop = LINKLIST(curop)) {
if (curop->op_type == OP_SCOPE
+ || curop->op_type == OP_LEAVE
|| (PL_opargs[curop->op_type] & OA_DANGEROUS)) {
if (curop->op_type == OP_GV) {
GV * const gv = cGVOPx_gv(curop);