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:
c210663
)
CRM-19465 - Capitalization displaying contries when in mailing mode
author
Frederic Guzman
<frederickgzmn@gmail.com>
Thu, 6 Oct 2016 14:16:14 +0000
(10:16 -0400)
committer
GitHub
<noreply@github.com>
Thu, 6 Oct 2016 14:16:14 +0000
(10:16 -0400)
Avoiding possible issues with special characters.
CRM/Utils/Address.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Address.php
b/CRM/Utils/Address.php
index 71189daf3df64ba3184f75e5dc563f8e029a7207..c0cb56af5aac8eadf327d138b416a2424d3fbd59 100644
(file)
--- a/
CRM/Utils/Address.php
+++ b/
CRM/Utils/Address.php
@@
-105,7
+105,8
@@
class CRM_Utils_Address {
$fields['country'] = NULL;
}
else {
- $fields['country'] = strtoupper($fields['country']);
+ //Capitalization display on uppercase to contries with special characters
+ $fields['country'] = mb_convert_case($fields['country'], MB_CASE_TITLE,"UTF8");
}
}
else {