p4raw-id: //depot/perl@24943
int
Perl_magic_gettaint(pTHX_ SV *sv, MAGIC *mg)
{
- TAINT_IF((mg->mg_len & 1) ||
- ((mg->mg_len & 2) && mg->mg_obj == sv)); /* kludge */
+ TAINT_IF(mg->mg_len & 1);
return 0;
}
Perl_magic_settaint(pTHX_ SV *sv, MAGIC *mg)
{
(void)sv;
- if (PL_localizing) {
- if (PL_localizing == 1)
- mg->mg_len <<= 1;
- else
- mg->mg_len >>= 1;
- }
- else if (PL_tainted)
+ if (PL_tainted)
mg->mg_len |= 1;
else
mg->mg_len &= ~1;
{
if (SvTYPE(sv) >= SVt_PVMG && SvMAGIC(sv)) {
MAGIC * const mg = mg_find(sv, PERL_MAGIC_taint);
- if (mg && ((mg->mg_len & 1) || ((mg->mg_len & 2) && mg->mg_obj == sv)))
+ if (mg && (mg->mg_len & 1) )
return TRUE;
}
return FALSE;