View Issue Details

IDProjectCategoryView StatusLast Update
0007967OXID eShop (all versions)1.06. Search, Tagspublic2026-07-01 10:34
Reportermario_lorenz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version7.0.0 
Summary0007967: Double-Encoded Quotes in <title> Tag (Search Results Page) - in Twig-Templates
DescriptionFrontendController::getPageTitle() calls the private method replaceDoubleQuotesWithHTMLCharacters(), which replaces " with ".
This is a Smarty-era relic: back then the title was rendered without auto-escaping, so the entity had to be produced manually.

Under Twig, however, the <title> tag (and og:title) is auto-escaped. As a result the ampersand gets encoded a second time:

" -> " -> the browser tab literally displays ".

This is most visible on the search results page, where the title wraps the search term in double quotes (e.g. Search results for "term"). The <h1> heading is not affected, because it is built with literal quotes in the template and is therefore auto-escaped only once.
TagsNo tags attached.
ThemeApex
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

QA

2026-06-29 09:57

administrator   ~0018556

Last edited: 2026-06-29 10:11

Also or still reproducable in 7.5:
simple search for a term with " like "test"
see the attached screenshot.
ack

Best Regards QA -SG-

QA

2026-06-29 10:12

administrator   ~0018557

here screenshot
quotation-issue.png (10,006 bytes)   
quotation-issue.png (10,006 bytes)   

SvenBrunk

2026-07-01 08:34

administrator   ~0018566

I am pretty sure this is not a bug, but intentional. If you search for '"test"' instead of just 'test' this needs to be quoted once and stay quoted. For the output we would also else have >0 Treffer für ""test"" < ... which is not much better.

QA

2026-07-01 10:34

administrator   ~0018570

The Problem is not the 0 Treffer,
the Problem is & q u o t ; see the screenshot. mantis resolves the entitys thats why you need to see the screenshot.

Best Regards QA -SG-