Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26092

Office 365 media type fails when domain name like "this.is.domain"

XMLWordPrintable

    • Sprint candidates

      There is a function call:

      $formatted_domain = substr_replace($domain, '-', strrpos($domain, '.'), 1);
      
      

      which does replacement only for 1st match of a dot
      https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/ui/app/controllers/CControllerMediatypeUpdate.php#129
      which, when I use email as "[email protected]"  results SMTP server name auto-parsed as:

      SMTP server: "this.is-domain.mail.protection.outlook.com"
      

      while it must be :

      SMTP server: "this-is-domain.mail.protection.outlook.com"
      

      This should be fixed to replace all "." entries in the domain name, not only one 1st found.

            zabbix.dev Zabbix Development Team
            zalex_ua Oleksii Zagorskyi
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: