From: <sy...@us...> - 2005-01-04 22:22:45
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2241 Modified Files: Tag: BRANCH-1-9 tiki-setup_base.php Log Message: an offset can be opisitf or negatif Index: tiki-setup_base.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-setup_base.php,v retrieving revision 1.78.2.9 retrieving revision 1.78.2.10 diff -u -d -r1.78.2.9 -r1.78.2.10 --- tiki-setup_base.php 1 Jan 2005 00:11:26 -0000 1.78.2.9 +++ tiki-setup_base.php 4 Jan 2005 22:22:08 -0000 1.78.2.10 @@ -98,14 +98,15 @@ } // mose : simulate strong var type checking for http vars -$patterns['int'] = "/^[0-9]*$/"; // *Id, offset, +$patterns['int'] = "/^[0-9]*$/"; // *Id +$patterns['intSign'] = "/^[-+]?[0-9]*$/"; // *offset, $patterns['char'] = "/^[-,_a-zA-Z0-9]*$/"; // sort_mode, $patterns['string'] = "/^[^<>\";#]*$/"; // find, and such extended chars $patterns['vars'] = "/^[-_a-zA-Z0-9]*$/"; // for variable keys $patterns['hash'] = "/^[a-z0-9]*$/"; // for hash reqId in live support -$vartype['offset'] = 'int'; +$vartype['offset'] = 'intSign'; $vartype['thresold'] = 'int'; $vartype['sort_mode'] = 'char'; $vartype['comments_offset'] = 'int'; |