From 7c36658b988154cf97fb44e48a4b69859fe075fb Mon Sep 17 00:00:00 2001 From: "Michael G. Schwern" Date: Mon, 8 Oct 2001 13:00:14 -0400 Subject: Re: [PATCH mg.c gv.c and others] ${^TAINT} Message-ID: <20011008170014.L17083@blackrider> p4raw-id: //depot/perl@12367 --- mg.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mg.c') diff --git a/mg.c b/mg.c index 0fb1a86d5e..4e186e0c5f 100644 --- a/mg.c +++ b/mg.c @@ -612,12 +612,16 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg) } break; case '\024': /* ^T */ + if (*(mg->mg_ptr+1) == '\0') { #ifdef BIG_TIME - sv_setnv(sv, PL_basetime); + sv_setnv(sv, PL_basetime); #else - sv_setiv(sv, (IV)PL_basetime); + sv_setiv(sv, (IV)PL_basetime); #endif - break; + } + else if (strEQ(mg->mg_ptr, "\024AINT")) + sv_setiv(sv, PL_tainting); + break; case '\027': /* ^W & $^WARNING_BITS & ^WIDE_SYSTEM_CALLS */ if (*(mg->mg_ptr+1) == '\0') sv_setiv(sv, (IV)((PL_dowarn & G_WARN_ON) ? TRUE : FALSE)); -- cgit v1.2.1