diff --git a/webform.module b/webform.module index 3b2f5a4c..620e9ddf 100644 --- a/webform.module +++ b/webform.module @@ -4033,7 +4033,7 @@ function webform_replace_tokens($string, $node = NULL, $submission = NULL, $emai $token_data['webform-email'] = $email; } $clear = is_bool($sanitize); - $string = token_replace($string, $token_data, array('clear' => $clear, 'sanitize' => $sanitize === TRUE)); + $string = token_replace($string, $token_data, array('clear' => $clear, 'sanitize' => $sanitize !== FALSE)); if (!$clear) { $string = webform_replace_tokens_clear(check_markup($string, $sanitize)); }