Change the set of characters that are considered to be
Rafael Garcia-Suarez [Sun, 8 Dec 2002 20:17:37 +0000 (20:17 +0000)]
safe in $ENV{TERM} for taint checkings.

p4raw-id: //depot/perl@18261

taint.c

diff --git a/taint.c b/taint.c
index 7914e64..4ca7ba7 100644 (file)
--- 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;