diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-01-06 20:31:43 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-01-06 20:31:43 +0000 |
commit | 9aa05f5803ebfde70aac285fc58e97e64abbc2b4 (patch) | |
tree | bddf91144353a1f5a8c7bdd11946043c91e4b112 /mg.c | |
parent | 143a3e5ef1446bbe436a43486e7681c31b0c8407 (diff) | |
download | perl-9aa05f5803ebfde70aac285fc58e97e64abbc2b4.tar.gz |
Change the value of ${^TAINT} : 0 without taint checks,
1 with -T, and -1 with -t or -TU.
p4raw-id: //depot/perl@18453
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -658,7 +658,9 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg) #endif } else if (strEQ(mg->mg_ptr, "\024AINT")) - sv_setiv(sv, PL_tainting); + sv_setiv(sv, PL_tainting + ? (PL_taint_warn || PL_unsafe ? -1 : 1) + : 0); break; case '\027': /* ^W & $^WARNING_BITS & ^WIDE_SYSTEM_CALLS */ if (*(mg->mg_ptr+1) == '\0') |