Bug substr

This commit is contained in:
Dany De Bontridder 2008-12-11 18:04:25 +00:00
parent 79ba2bfeac
commit 91e8cb7cd2

View file

@ -67,7 +67,7 @@ class Todo_List
public function check($p_idx,&$p_value) {
if ( strcmp ($p_idx, 'tl_id') == 0 ) { if ( strlen($p_value) > 6 || isNumber ($p_value) == false) return false;}
if ( strcmp ($p_idx, 'tl_date') == 0 ) { if ( strlen($p_value) > 12 || isDate ($p_value) == false) return false;}
if ( strcmp ($p_idx, 'tl_title') == 0 ) { $p_value=subsrt(htmlentities($p_value),0,120) ; return true;}
if ( strcmp ($p_idx, 'tl_title') == 0 ) { $p_value=substr(htmlentities($p_value),0,120) ; return true;}
if ( strcmp ($p_idx, 'tl_desc') == 0 ) { $p_value=substr(htmlentities($p_value),0,400) ; return true;}
return true;
}