summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-09-16 16:12:21 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-09-16 16:12:21 +0000
commitaded5841029c0639dd5c9da1bb5c779beda76abf (patch)
tree0022d38d67f10ecb7de9620f9905fd6f32f79db8
parentc4403eed121c115aa78bd35efce4b0197e96b55c (diff)
downloadbrdo-aded5841029c0639dd5c9da1bb5c779beda76abf.tar.gz
brdo-aded5841029c0639dd5c9da1bb5c779beda76abf.tar.bz2
Adding a note about drupal_eval() acting like a variable sandbox.
-rw-r--r--includes/common.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 445344f5c..bc9cac4eb 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -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