| @@ -24,43 +24,50 @@ | ||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function onAcymGetSendingMethodsHtmlSetting(&$data) |
| 27 | 27 | { |
| 28 | - ob_start(); | |
| 29 | 28 | ?> |
| 30 | - <div class="send_settings cell grid-x acym_vcenter" id="<?php echo self::SENDING_METHOD_ID; ?>_settings"> | |
| 29 | + <div class="send_settings cell grid-x acym_vcenter" id="<?php echo esc_attr(self::SENDING_METHOD_ID); ?>_settings"> | |
| 31 | 30 | <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings"> |
| 32 | 31 | <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings"> |
| 33 | 32 | <label for="brevo_identifier" class="cell shrink margin-right-1"> |
| 34 | - <?php echo acym_translation('ACYM_BREVO_LOGIN'); ?> | |
| 33 | + <?php echo esc_html(acym_translation('ACYM_BREVO_LOGIN')); ?> | |
| 35 | 34 | </label> |
| 36 | - <?php echo $this->getLinks( | |
| 35 | + <?php $this->getLinks( | |
| 37 | 36 | 'https://get.brevo.com/hbvmwg6onvve' |
| 38 | 37 | ); ?> |
| 39 | 38 | <div class="margin-left-1 cell grid-x acym-grid-margin-x shrink acym_vcenter"> |
| 40 | - <p class="cell shrink"><?php echo acym_translation('ACYM_ALREADY_HAVE_AN_ACCOUNT'); ?></p> | |
| 41 | - <a target="_blank" class="cell shrink" href="https://app.brevo.com/settings/keys/smtp"><?php echo strtolower(acym_translation('ACYM_HERE')); ?></a> | |
| 39 | + <p class="cell shrink"><?php echo esc_html(acym_translation('ACYM_ALREADY_HAVE_AN_ACCOUNT')); ?></p> | |
| 40 | + <a target="_blank" class="cell shrink" href="https://app.brevo.com/settings/keys/smtp"><?php echo esc_html( | |
| 41 | + strtolower(acym_translation('ACYM_HERE')) | |
| 42 | + ); ?></a> | |
| 42 | 43 | </div> |
| 43 | 44 | <input id="brevo_identifier" |
| 44 | - class="cell" | |
| 45 | - type="text" | |
| 46 | - name="config[brevo_identifier]" | |
| 47 | - value="<?php echo acym_escape($this->config->get('brevo_identifier', '')); ?>"> | |
| 45 | + class="cell" | |
| 46 | + type="text" | |
| 47 | + name="config[brevo_identifier]" | |
| 48 | + value="<?php echo esc_attr($this->config->get('brevo_identifier', '')); ?>"> | |
| 48 | 49 | </div> |
| 49 | 50 | <div class="cell grid-x acym_vcenter acym__sending__methods__one__settings"> |
| 50 | - <label for="brevo_smtp_key" class="cell"><?php echo acym_translation('ACYM_BREVO_SMTP_KEY'); ?></label> | |
| 51 | + <label for="brevo_smtp_key" class="cell"><?php echo esc_html(acym_translation('ACYM_BREVO_SMTP_KEY')); ?></label> | |
| 51 | 52 | <input id="brevo_smtp_key" |
| 52 | - class="cell" | |
| 53 | - type="text" | |
| 54 | - name="config[brevo_smtp_key]" | |
| 55 | - value="<?php echo acym_escape($this->config->get('brevo_smtp_key')); ?>"> | |
| 53 | + class="cell" | |
| 54 | + type="text" | |
| 55 | + name="config[brevo_smtp_key]" | |
| 56 | + value="<?php echo esc_attr($this->config->get('brevo_smtp_key')); ?>"> | |
| 56 | 57 | </div> |
| 57 | 58 | </div> |
| 58 | 59 | </div> |
| 59 | 60 | <?php |
| 60 | - $data['sendingMethodsHtmlSettings'][self::SENDING_METHOD_ID] = ob_get_clean(); | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | + /** | |
| 64 | + * @param array $credentials | |
| 65 | + * @param string $sendingMethod | |
| 66 | + * @param array $sendingMethodListParams this parameter is only used for the plugin sending method list | |
| 67 | + * | |
| 68 | + * @return void | |
| 69 | + */ | |
| 63 | 70 | public function onAcymGetCredentialsSendingMethod(array &$credentials, string $sendingMethod, array $sendingMethodListParams = []) |
| 64 | 71 | { |
| 65 | 72 | if ($sendingMethod != self::SENDING_METHOD_ID) return; |
| 66 | 73 | |