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

#1
Hello,
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 "test1@test2.com 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 "test1@test2.com"
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:
$this->input->post('email'

I receive old, incorrect value.

Thanks!
Reply

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
3 Guest(s)


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