Skip to content

Commit 64a7c0d

Browse files
Potential fix for code scanning alert no. 42: Incomplete multi-character sanitization
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 5b8241e commit 64a7c0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/src/js/base/supersearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ $(document).ready(function () {
299299
// Sostituisci la classe highlight con search-highlight per coerenza
300300
processedLabels = processedLabels.replace(/class=['"]highlight['"]/g, 'class="search-highlight"');
301301

302-
const cleanLabels = escapeHtmlAttribute(labels.replace(/<[^>]*>/g, '')); // Rimuovi HTML per il tooltip ed effettua l'escape per l'attributo
302+
const cleanLabels = escapeHtmlAttribute(labels); // Effettua l'escape per l'attributo del tooltip
303303

304304
// Evidenzia il termine di ricerca nel titolo
305305
const highlightedTitle = highlightSearchTerm(title, searchTerm);

0 commit comments

Comments
 (0)