Index: token.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/token/token.module,v retrieving revision 1.5.2.10 diff -u -p -r1.5.2.10 token.module --- token.module 16 Nov 2007 22:29:40 -0000 1.5.2.10 +++ token.module 9 Jan 2008 21:30:35 -0000 @@ -216,6 +216,9 @@ function token_get_values($type = 'globa $tokens = array(); } + // Ensure $object is not modified (objects are always passed by reference in PHP5) + $object = drupal_clone($object); + // Simple recursion check. This is to avoid content_view()'s potential // for endless looping when a filter uses tokens, which load the content // view, which calls the filter, which uses tokens, which...