Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
extensions
cc.tadpole.petitionemail
Commits
30663a4b
Commit
30663a4b
authored
Dec 09, 2014
by
Jamie McClelland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid getting weird entites in text email
e.g. < or & should not get converted.
parent
fea0aae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
petitionemail.php
petitionemail.php
+7
-1
No files found.
petitionemail.php
View file @
30663a4b
...
...
@@ -655,6 +655,10 @@ function petitionemail_process_signature($activity_id, $profile_fields = NULL) {
if
(
is_null
(
$petition_message
))
{
$petition_message
=
$default_message
;
}
// CiviCRM seems to htmlentitize everything submitted, but we are
// preventing any html tags in our validation and we want to avoid
// weird htmlentites being added to text messages.
$petition_message
=
html_entity_decode
(
$petition_message
);
// Add the sending contacts address info
$address_block
=
petitionemail_get_address_block
(
$contact_id
);
...
...
@@ -689,7 +693,9 @@ function petitionemail_process_signature($activity_id, $profile_fields = NULL) {
$subject
=
$default_subject
;
}
// CiviCRM seems to htmlentitize everything submitted, but we don't
// want 3 > 1 in a subject line get converted to 3 > 1
$subject
=
html_entity_decode
(
$subject
);
$from
=
NULL
;
if
(
empty
(
$contact
[
'email'
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment