Topic: some bad structures in new version of phpUserClass (Read 581 times)
Just another rainy day
Posts: 1
10 credits Members referred : 0
« on: Sep 20, 2011, 07:59:32 pm »
Hello dear,
1. recently discovered a bug in using md5 and sha1 (its behavior in the hash of space). you should not only use these algorithms , for more security you should use a salt. 2. in the escape function you only specified magic quotes and addslashes function. you think , if a user has a server with old/oldest version of php! or the addslashes is disabled on his/hers server... . the solution is , you specify if the addslashes is exists then addslash the variable else use mysql_real_escape_string . my fantastic function is yours now:
3. use get_defined_constants() to know all constants in php. i want to say, FALSE and TRUE are constants and a coder should know that and should write all constants in upper case.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3