rick delaney hfvobortca nov 06 2007 otgheisede wrote applying regex using string flagged utf8 submatch unexpectedly tainted reproduce behaviour code usrbinperl use warnings use strict use scalarutil qwtainted line utf8upgradeline line first 1 print taintedfirst n __end__ attached patch fixes look rest switch statement see missingplaced breaks im pretty sure one end case ndigit case ndigit do_utf8 loceol pl_regeol load_utf8_charclass_digit hardcount max scan loceol swash_fetchpl_utf8_digit u8scan do_utf8 scan utf8skipscan hardcount else scan loceol isdigitscan scan case lnbreak case lnbreak added change 31026 looks like may missed adding break switch statements havent looked closely though browsed change httppublicactivestatecomcgibinperlbrowsep31026 rick delaney hfvobortca thu 07 aug 2008 114058 0500 patch blead perl 47195 1 suddenly tainted regexp utf8 string