We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e8b89f + f102bd3 commit ebe4973Copy full SHA for ebe4973
src/app/code/community/Zendesk/Zendesk/controllers/Adminhtml/ZendeskController.php
@@ -415,9 +415,9 @@ public function autocompleteAction()
415
$output = '<ul>';
416
if($customers->getSize()) {
417
foreach($customers as $customer) {
418
- $id = $customer->getId();
419
- $name = $customer->getName();
420
- $email = $customer->getEmail();
+ $id = htmlspecialchars($customer->getId(), ENT_COMPAT, 'UTF-8');
+ $name = htmlspecialchars($customer->getName(), ENT_COMPAT, 'UTF-8');
+ $email = htmlspecialchars($customer->getEmail(), ENT_COMPAT, 'UTF-8');
421
$output .= '<li id="customer-' . $id . '" data-email="' . $email . '" data-name="' . $name . '">' . $name . ' <' . $email . '></li>';
422
}
423
0 commit comments