Commit aded5841 authored by Steven Wittens's avatar Steven Wittens

Adding a note about drupal_eval() acting like a variable sandbox.

parent c4403eed
......@@ -1861,6 +1861,9 @@ function mime_header_encode($string, $charset = 'UTF-8') {
* <?php ?> tags; in other words, we evaluate the code as if it were a stand-alone
* PHP file.
*
* Using this wrapper also ensures that the PHP code which is evaluated can not
* overwrite any variables in the calling code, unlike a regular eval() call.
*
* @param $code
* The code to evaluate.
* @return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment