Issue Bug Closed

#100070Invalid HTML a tag generation in due to missing quote DatabaseRecordList

Joey Bouten 03/03/23, 09:50 updated 03/14/23, 11:47

Description

All titles are broken in our list view.

            default:
                // Output the label now:
                if ($table === 'pages') {
                    $code = '<a href="' . htmlspecialchars(
                        $this->listURL((string)$uid, '', 'pointer')
                    ) . '>' . $code . '</a>';
                } else {
                    $code = $this->linkUrlMail($code, $origCode);
                }

Should be

            default:
                // Output the label now:
                if ($table === 'pages') {
                    $code = '<a href="' . htmlspecialchars(
                        $this->listURL((string)$uid, '', 'pointer')
                    ) . '">' . $code . '</a>';
                } else {
                    $code = $this->linkUrlMail($code, $origCode);
                }

Generated code is :Crops – folder

Breaking change was done in: https://github.com/TYPO3-CMS/recordlist/commit/2829fb9c44b27a3f285620ff2b02480bfb0d3814

Reviews 2