[eluser]Glowball[/eluser]
I'm not sure I understand this behavior. I'm using XSS filtering on a field that contains an account number entered by a user. I have no prior knowledge about this number -- it could even contain letters. I'm doing this before entering $account into the database:
$account = trim($this->input->post('account'), TRUE);
This works fine unless I try to enter something starting or ending with a "1". For example:
5678 gets 5678 (that's normal)
123456 gets 23456
861 gets 86
45111 gets 45
1112 gets 2
1111 gets an empty field
It's stripping out all "1" characters at the beginning and ending of the string. Is this a bug? Is there something I'm missing? Thanks!