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

Quick search results with non-latin Locations

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: