Login   Register  
PHP Classes
elePHPant
Icontem

Fixed with Proper MySQL Escape

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Ultimate MySQL  >  All threads  >  Fixed with Proper MySQL Escape  >  (Un) Subscribe thread alerts  
Subject:Fixed with Proper MySQL Escape
Summary:Replaces SQLFix with mysqli_real_escape_string
Messages:2
Author:Ryan Tse
Date:2012-12-23 09:11:03
Update:2012-12-23 19:45:22
 

  1. Fixed with Proper MySQL Escape   Reply   Report abuse  
Picture of Ryan Tse
Ryan Tse
2012-12-23 09:11:03
Changes:

- Based off code from "Shadow aok"
- Removes depreciated SQLUnfix
- Changes SQLFix to use mysqli_real_escape_string to account for Unicode support in preventing SQL injections.

http://pastie.org/pastes/5567707/text?key=mnlfagnl0kw4owxh0p ...

Sincerely,
Ryan Tse

  2. Re: Fixed with Proper MySQL Escape   Reply   Report abuse  
Picture of Ryan Tse
Ryan Tse
2012-12-23 19:45:22 - In reply to message 1 from Ryan Tse
Changes:

- Removes static property of SQLUnfix
- Fixes mysqli_real_escape_string in SQLFix with correct number of parameters, conflicts with static property.

v2: http://pastie.org/pastes/5569345/text?key=2i8ryplyw5b6rokgxs5jq