Posted by Harris Kosmidhs on 12/13/06 09:27
Hello,
I have installed a tracker php program called Bytemoonsoon
(https://sourceforge.net/projects/bytemonsoon/). It' quite old but I
started messing with it.
When a user sign ups the a $secret is created which is stored in the db
row of the user. An email is sent which says to go to a
confirm.php/<users_id>/<md5($secret)>
The confirm.php gets the md5 secret (from the URL) and checks it against
the md5(<secret form the user row>) which should be identicall since the
<secret> is the same. But it's not! the md5 is different.
Both pages are in UTf8 and the database is utf8_general_ci. Before the
select statements I do a mysql_query("set names utf8").
Why do md5's are different? can somebody please help? thanks
Navigation:
[Reply to this message]
|