Welcome Guest, Not a member yet? Register   Sign In
percent (%) sign causing a hex problem
#1

[eluser]ericsodt[/eluser]
I have users that authenticate via Active Directory. I am running into a problem where a special char is turning itself into a letter causing the password to be wrong.

For example:

Code:
public function authenticate() {
  $this->load->library('Adldap');
  $un = $this->input->post('userName', TRUE);  
  $pwd = $this->input->post('password', TRUE);
  print "$un<br>$pwd <p>";

The true password contains the following text '% 67' (percent six seven with out spaces like I have in order to display correctly), but when I print out $pwd it prints its HEX value of 'g'

Any thoughts on how to fix that?




Theme © iAndrew 2016 - Forum software by © MyBB