Is Propel fromArray / fromJSON safe from SQL injection?

The Propel ORM documentation mentions a neat import / export function using functions such as fromArray and fromJSON, which should allow something like this:

$foo = new Widget();
$foo->fromArray($_POST);
$foo->save(); /* Aaand you're done! */

... but the documentation does not mention that using this method should be safe, i.e. if fromArray can handle untrusted input. My guess would be that everything is fine - the default installers are injectable, and the whole deal is based on PDO, but I would like to be sure.

+5
source share
2 answers

Propel PDO , PDO, , SQL Injection ( ).

, PDO SQL Injection, .

, , , Propel PDO SQL Injection.

+6

Propel , , fromArray(), $_POST . .

, , .

+2

All Articles