First, I forgot the "^" in my pattern.
Secondly, Perl doesn't know or care whether it was launched by a web server. Blaming this for the change in behaviour is misdirected. Obviously, the strings you are trying to process are not the same. Start by finding the difference in the strings using
{ use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper($s); }
In reply to Re^3: Strip utf-8 dangerous url chars
by ikegami
in thread Strip utf-8 dangerous url chars
by AlfaProject
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |