Corveda / PHPSandbox

A PHP-based sandboxing library with a full suite of configuration and validation options.
https://phpsandbox.org
Other
220 stars 46 forks source link

Correctly escape strings for use in executed code #6

Closed jecknig closed 8 years ago

jecknig commented 8 years ago

Replace addcslashes(... , "'") by addcslashes(..., "'\\") everywhere in PHPSandbox.php.

This resolves #5.

fieryprophet commented 8 years ago

Nice catch.