Changeset 156 for trunk/trax/vendor/trax/input_filter.php
- Timestamp:
- 02/28/06 19:56:23 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/input_filter.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/input_filter.php
r155 r156 26 26 * possible sources of user input</li> 27 27 * </ul> 28 * For usage instructions see 29 * {@tutorial PHPonTrax/InputFilter.cls the class tutorial}. 28 30 * @todo Check FIXMEs 29 31 */ … … 599 601 protected function escapeString($string, &$connection) { 600 602 // depreciated function 601 if (version_compare(phpversion(),"4.3.0", "<")) mysql_escape_string($string); 603 if (version_compare(phpversion(),"4.3.0", "<")) 604 return mysql_escape_string($string); 602 605 // current function 603 else mysql_real_escape_string($string);604 return $string;606 else 607 return mysql_real_escape_string($string); 605 608 } 606 609 }
