This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add extra language in the quotemeta() docs for embedded \ and $
[perl5.git] / taint.c
diff --git a/taint.c b/taint.c
index 871d89f..5834548 100644 (file)
--- a/taint.c
+++ b/taint.c
@@ -170,7 +170,7 @@ Perl_taint_env(pTHX)
 #endif
        if (t < e && isWORDCHAR(*t))
            t++;
-       while (t < e && (isWORDCHAR(*t) || strchr("-_.+", *t)))
+       while (t < e && (isWORDCHAR(*t) || memCHRs("-_.+", *t)))
            t++;
        if (t < e) {
            TAINT;