From 0f9569cdd818efc17a66dd7e2e380085f2d9c78e Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Wed, 7 Oct 2026 19:46:24 -0700 Subject: [PATCH] fix: escape remaining server values rendered through innerHTML Maintenance and diagnostics results, review-tag errors, video info and metadata error messages, consistency issues, recent image filenames, output directory names, the prompt rating attribute, gallery media types and duplicate group headers were interpolated unescaped. The copy fallback modal also inlined the prompt text inside +
- Type: ${fileExt} Video + Type: ${escapeHtml(fileExt)} Video
@@ -1094,7 +1094,7 @@ container.innerHTML = `

❌ Video Info Error

-

${error.message}

+

${escapeHtml(error.message)}

`; } @@ -1188,7 +1188,7 @@ container.innerHTML = `

❌ Metadata Error

-

${error.message}

+

${escapeHtml(error.message)}

`; } @@ -2152,10 +2152,10 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; groupEl.innerHTML = `
- Duplicate Group ${groupIndex + 1} (${group.images.length} identical ${group.images[0].media_type}s) + Duplicate Group ${groupIndex + 1} (${group.images.length} identical ${escapeHtml(group.images[0].media_type)}s)
- Content Hash: ${group.hash.substring(0, 16)}... + Content Hash: ${escapeHtml(String(group.hash || '').substring(0, 16))}...
${group.images.map((image, imageIndex) => `