Index: trunk/kernel/include/emailmessage.php =================================================================== diff -u -N -r701 -r748 --- trunk/kernel/include/emailmessage.php (.../emailmessage.php) (revision 701) +++ trunk/kernel/include/emailmessage.php (.../emailmessage.php) (revision 748) @@ -882,7 +882,7 @@ else { $sendTo = $ToAddr; } - + $sendTo=addslashes($sendTo); $sql = "INSERT INTO ".GetTablePrefix()."EmailLog VALUES ('', '$FromName', '$sendTo', '".str_replace("Subject:", "", $Subject)."', $time, '$SendEvent')"; $conn->Execute($sql); Index: trunk/kernel/include/cachecount.php =================================================================== diff -u -N -r13 -r748 --- trunk/kernel/include/cachecount.php (.../cachecount.php) (revision 13) +++ trunk/kernel/include/cachecount.php (.../cachecount.php) (revision 748) @@ -109,6 +109,7 @@ } if(!$found) { + $ListType=intval($ListType); $sql = "SELECT * FROM ".$this->SourceTable." WHERE ItemType=$ItemType AND ListType=$ListType AND ExtraId='$ExtraId' AND TodayOnly=$TodayOnly"; $res = $this->adodbConnection->Execute($sql); if($res && !$res->EOF)