Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-830

Quick search results with non-latin Locations

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Web Interface
    • CentOS 6.5, PHP 5.3.3

    Description

      Hi.
      I found a problem with the "quick search". Incorrectly displays the location, if it contains non-Latin characters.
      This is because the function htmlentities () in PHP versions < 5.4.0 uses ISO-8859-1.
      For me, the problem was resolved manually specifying UTF-8 encoding in ajax_search.php, line 73:

      -            <br /> '.highlight_search(htmlentities($result['location'], 0)).' | '.$num_ports.' ports</small>
      +            <br /> '.highlight_search(htmlentities($result['location'], 0, 'UTF-8')).' | '.$num_ports.' ports</small>
      
      

      Attachments

        Activity

          [OBS-830] Quick search results with non-latin Locations
          landy Mike Stupalov made changes -
          Workflow Original: classic default workflow [ 11623 ] New: Observium workflow [ 14127 ]
          landy Mike Stupalov made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          landy Mike Stupalov made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Fixed in r5438.

          landy Mike Stupalov added a comment - Fixed in r5438.
          vladsol Vladislav Solovei created issue -

          People

            adama Adam Armstrong
            vladsol Vladislav Solovei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: