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

    • S25-W20/21, S25-W22/23
    • 1

      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.

            msnihach Maksym Snihach
            zalex_ua Oleksii Zagorskyi
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 13h
                13h