• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form validation, valid_email

I have problem with valid_email method in CI_Form_validation class. I have newest CI, 3.1.4

I use form validation class to validate user input (register page), I have valid_email rule added.
Let's make an example, user inputs email value "[email protected] having 1=1--" obviously it's not valid email, and the validation should fail.

However in this line https://github.com/bcit-ci/CodeIgniter/b....php#L1232
there is an if statement, which evaluates to TRUE, and modifies user input to "[email protected]"
and then validation passess without any problems.

I am missing something here? $_POST value remains unchanged, so after sucessfull validation when I take user email like 
PHP Code:

I receive old, incorrect value.


3.1.5 was just released with this patch: https://github.com/bcit-ci/CodeIgniter/c...2140318961

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.