summaryrefslogtreecommitdiff
path: root/taint.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-12-08 20:17:37 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-12-08 20:17:37 +0000
commitd085cc716f2bb280bae09a8c1f4d4c39396a0635 (patch)
tree42cf88ee7eb3f2df7f431a562bd39b54b6d18528 /taint.c
parent332d5f78c71e403169f58124c6048eb8b60a8d71 (diff)
downloadperl-d085cc716f2bb280bae09a8c1f4d4c39396a0635.tar.gz
Change the set of characters that are considered to be
safe in $ENV{TERM} for taint checkings. p4raw-id: //depot/perl@18261
Diffstat (limited to 'taint.c')
-rw-r--r--taint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/taint.c b/taint.c
index 7914e64ec1..4ca7ba7d9c 100644
--- a/taint.c
+++ b/taint.c
@@ -129,7 +129,7 @@ Perl_taint_env(pTHX)
PL_tainted = was_tainted;
if (t < e && isALNUM(*t))
t++;
- while (t < e && (isALNUM(*t) || *t == '-' || *t == ':'))
+ while (t < e && (isALNUM(*t) || strchr("-_.+", *t)))
t++;
if (t < e) {
TAINT;