Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fillpdf
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
fillpdf
Commits
a7b52468
Commit
a7b52468
authored
11 years ago
by
Robert Rothermel
Committed by
Kevin Kaland
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #1633060: Don't web-sanitize tokens.
parent
a6350130
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fillpdf.module
+2
-2
2 additions, 2 deletions
fillpdf.module
with
2 additions
and
2 deletions
fillpdf.module
+
2
−
2
View file @
a7b52468
...
@@ -340,7 +340,7 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU
...
@@ -340,7 +340,7 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU
foreach
(
$nodes
as
$node
)
{
foreach
(
$nodes
as
$node
)
{
$token_objects
[
'node'
]
=
$node
;
$token_objects
[
'node'
]
=
$node
;
// The third parameter says to clear the value if no token can be generated
// 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
)
{
if
(
$token
&&
$token
!=
$obj
->
value
)
{
break
;
break
;
}
}
...
@@ -380,7 +380,7 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU
...
@@ -380,7 +380,7 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU
'webform-submission'
=>
$webform
[
'submission'
],
'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
)
{
if
(
$token
)
{
break
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment