From a7b524689cb621d3f1caed3d4e8ee4041ef41206 Mon Sep 17 00:00:00 2001 From: Robert Rothermel <thirdender@1336072.no-reply.drupal.org> Date: Tue, 22 Oct 2013 20:17:19 +0200 Subject: [PATCH] Issue #1633060: Don't web-sanitize tokens. --- fillpdf.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fillpdf.module b/fillpdf.module index 3137d54..f15a073 100644 --- a/fillpdf.module +++ b/fillpdf.module @@ -340,7 +340,7 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU foreach ($nodes as $node) { $token_objects['node'] = $node; // The third parameter says to clear the value if no token can be generated - $token = token_replace($obj->value, array('node' => $node), array('clear' => TRUE)); + $token = token_replace($obj->value, array('node' => $node), array('clear' => TRUE, 'sanitize' => FALSE)); if ($token && $token != $obj->value) { break; } @@ -380,7 +380,7 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU 'webform-submission' => $webform['submission'], ); - $token = token_replace($obj->value, $token_objects, array('clear' => TRUE)); + $token = token_replace($obj->value, $token_objects, array('clear' => TRUE, 'sanitize' => FALSE)); if ($token) { break; } -- GitLab