[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc common_functions.inc.php,1.14,1.15
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc common_functions.inc.php,1.14,1.15 |
Date: |
Sat, 11 Jan 2003 22:43:58 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv2233
Modified Files:
common_functions.inc.php
Log Message:
fixed validation bug in safe_args() and removed debug line I left in
createobject()
Index: common_functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/common_functions.inc.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** common_functions.inc.php 11 Jan 2003 08:32:44 -0000 1.14
--- common_functions.inc.php 12 Jan 2003 03:43:55 -0000 1.15
***************
*** 196,199 ****
--- 196,200 ----
function safe_args($expected, $recieved, $line='??', $file='??')
{
+ echo '$recieved:<pre>'; print_r($recieved); echo '</pre>';
/* This array will contain all the required fields */
$required = Array();
***************
*** 224,228 ****
for ($i = 0; $i < $num; $i++)
{
! if(isset($recieved[$i]) &&
$recieved[$i] != '##DEFAULT##')
{
if(sanitize($recieved[$i],$expected[$i]['type']))
--- 225,229 ----
for ($i = 0; $i < $num; $i++)
{
! if(isset($recieved[$i]) &&
$recieved[$i] !== '##DEFAULT##')
{
if(sanitize($recieved[$i],$expected[$i]['type']))
***************
*** 248,252 ****
while(list($key,$val) = each($recieved[0]))
{
! if($val != '##DEFAULT##')
{
if(sanitize($val,$types[$key])
== True)
--- 249,253 ----
while(list($key,$val) = each($recieved[0]))
{
! if($val !== '##DEFAULT##')
{
if(sanitize($val,$types[$key])
== True)
***************
*** 673,677 ****
if ($p1 == '_UNDEF_' && $p1 != 1)
{
- echo('$obj = new ' . $classname . ';');
$obj = new $classname;
}
--- 674,677 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc common_functions.inc.php,1.14,1.15,
Dan Kuykendall <address@hidden> <=