Epinova / Epinova.Elasticsearch

A search-plugin for Episerver CMS and Commerce
MIT License
29 stars 20 forks source link

"Stats" administration page crashes if search queries contain apostrophe #104

Closed bjarte closed 2 years ago

bjarte commented 4 years ago

The stats page lists all searches done by users. If one of these queries contain an apostrophe ('), the javascript to display the statistics crashes. The result is an empty Stats page.

Stats page: /ElasticSearchAdmin/ElasticTracking

Example:

new Grid({
  "class": "epi-grid-height--300 epi-grid--with-border",
  columns: {
    word: "Search text",
    count: "Count"
  }
}, "no-wordsGrid")
.renderArray([
  { word: 'my fabulous search query with an apostrophe'', count: 2207 }
]);
otanum commented 2 years ago

Fixed in 11.7.4.229