Show
Ignore:
Timestamp:
02/28/06 19:56:23 (6 years ago)
Author:
haas
Message:

InputFilter? documentation, regression test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/input_filter.php

    r155 r156  
    2626 *      possible sources of user input</li> 
    2727 *  </ul> 
     28 *  For usage instructions see 
     29 *  {@tutorial PHPonTrax/InputFilter.cls the class tutorial}. 
    2830 *  @todo Check FIXMEs 
    2931 */ 
     
    599601    protected function escapeString($string, &$connection) { 
    600602        // 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); 
    602605        // current function 
    603         else mysql_real_escape_string($string); 
    604         return $string; 
     606        else 
     607            return mysql_real_escape_string($string); 
    605608    } 
    606609}