projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de0c487
)
CRM-20040 Handle apostrophes and double double quotes in on behalf of Org fields
author
adixon
<alan.g.dixon@gmail.com>
Fri, 17 Feb 2017 15:19:35 +0000
(10:19 -0500)
committer
adixon
<alan.g.dixon@gmail.com>
Fri, 17 Feb 2017 15:19:35 +0000
(10:19 -0500)
CRM/Contribute/Form/ContributionBase.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contribute/Form/ContributionBase.php
b/CRM/Contribute/Form/ContributionBase.php
index 9465253007306f95158d13b46f07d9e5e06fcb9e..9d8e25dd52209908e1967c2e9d91885e793f38bb 100644
(file)
--- a/
CRM/Contribute/Form/ContributionBase.php
+++ b/
CRM/Contribute/Form/ContributionBase.php
@@
-891,7
+891,7
@@
class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
if (!empty($form->_submitValues['onbehalfof_id'])) {
$form->assign('submittedOnBehalf', $form->_submitValues['onbehalfof_id']);
}
- $form->assign('submittedOnBehalfInfo', json_encode(
$form->_submitValues['onbehalf']
));
+ $form->assign('submittedOnBehalfInfo', json_encode(
str_replace('"', '\"', $form->_submitValues['onbehalf']), JSON_HEX_APOS
));
}
$fieldTypes = array('Contact', 'Organization');