note 26520 rejected from function.mysql-escape-string by nicos
| From: | nicos@php.net | Date: | Sat, 02 Nov 2002 19:08:06 +0000 |
| Subject: | note 26520 rejected from function.mysql-escape-string by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38908@lists.php.net to get a copy of this message | ||
Was using mysql_real_escape_string to escape HTML and numeric data. I was surprised when $data =
"0" (that's a zero you known ASCII x30) was treated as a NUL. The workaround was to
use AddSlashes.