Details

      Description

      When entering a server name in the frontend initial setup, it is not escaped, and accepts special characters. This causes invalid syntax in the config file, and the frontend refuses to load.

      eg. entering:
      Grant's Test Server
      becomes:
      $ZBX_SERVER_NAME = 'Grant's Test Server';

      The extra ' breaks it.

      The field should either escape the ' (if it won't cause problems elsewhere), strip it out, or prompt the user with an error.

        Activity

        Hide
        Alexey Fukalov added a comment -

        dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5547

        Show
        Alexey Fukalov added a comment - dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5547
        Hide
        Pavels Jelisejevs added a comment - - edited

        (1) The host and port must be escaped too. May be all of the database related fields as well.

        <Vedmak> RESOLVED

        <pavels> CLOSED.

        Show
        Pavels Jelisejevs added a comment - - edited (1) The host and port must be escaped too. May be all of the database related fields as well. <Vedmak> RESOLVED <pavels> CLOSED.
        Hide
        Alexey Fukalov added a comment -

        Fixed in 2.0.4rc1 r30551, pre-2.1.0 r30552.

        Show
        Alexey Fukalov added a comment - Fixed in 2.0.4rc1 r30551, pre-2.1.0 r30552.

          People

          • Assignee:
            Alexey Fukalov
            Reporter:
            Grant Emsley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: