Issue Bug Closed

#107531Labels in EXT:backend linkHandler are broken

Benoit Chenu 09/24/25, 12:27 updated 12/02/25, 13:04

Description

Hi,

We’ve got the same issue as #105816 in EXT:backend extension. Labels in linkHandler are broken if we use a quot:

How to reproduce:

TCEMAIN.linkHandler {
    exemple {
        handler = TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler
        label = <test>it's an issue
        configuration {
            table = tx_exemple_domain_model_exemple
            storagePid = 1
        }
    }
}

Displays:

&lt;test&gt;it&#039;s an issue

Should displays:

<test>it's an issue

htmlspecialchars() has to be removed in TYPO3\CMS\Backend\Controller\AbstractLinkBrowserController::loadLinkHandlers() method:

https://git.typo3.org/typo3/CI/cms/-/blob/705af218468644da719a26741e80c1819300be55/typo3/sysext/backend/Classes/Controller/AbstractLinkBrowserController.php#L254

This issue concerns TYPO3 >=13

Reviews 2

Files 1

History 812

  1. Benoit Chenu commented and changed attached Capture d’écran du 2025-09-24 14-31-43.png <span data-processor="relativetime" data-value="2025-09-24T12:34:05+00:00" > 09/24/25, 12:34 </span>

    Redmine escape didn’t display escaped characters. I join a screenshot of the current display:

  2. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-09-26T08:51:03+00:00" > 09/26/25, 08:51 </span>

    Hi @benkai – thanks so much for the patch, good find! :)

  3. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-09-26T11:20:08+00:00" > 09/26/25, 11:20 </span>

    Applied in changeset commit:a58d4538e127c2019ad3422cc860921c4a02b2dd.

  4. Benoit Chenu commented <span data-processor="relativetime" data-value="2025-09-26T12:17:33+00:00" > 09/26/25, 12:17 </span>

    Thanks to you simonschaufi and ghi.

    I’ve got an issue with Gerrit, I can’t login anymore so I couldn’t push the fix myself, sorry.
    I’ve sent a message on Slack #typo3-server-team and an email to admin without response.