Some may know that PHP methods can be remotely invoked from Flash. Sometimes the input parameter of a remote PHP method is an array of integers. Because PHP is dynamically typed an attacker can pass an array of anything. The array of integers has to be used in a SQL query. At the moment I m preventing injection like this:
foreach ($unsafeArray as $value)
$safeArray[] = (int)$value;
你推荐什么?也许我应该开始使用Java:D