Issue Bug Closed

#97329Missing isset in indexed_search SearchController.php

Preben Rather Sørensen 04/07/22, 12:55 updated 10/04/22, 14:05

Description

In typo3/sysext/indexed_search/Classes/Controller/SearchController.php line 492 and 538 there is a missing isset

if ($GLOBALS[‘TSFE’]->config[‘config’][‘fileTarget’])

Should be

if (isset($GLOBALS[‘TSFE’]->config[‘config’][‘fileTarget’]))

The missing isset cause an error in frontend under certain circumstances:

PHP Warning: Undefined array key "fileTarget" in /var/www/html/private/typo3/sysext/indexed_search/Classes/Controller/SearchController.php line 492

Reviews 2

History 25

  1. Gerrit Code Review pushed patch set 1 for main to change 74218 status New Under Review 04/07/22, 13:20

  2. Gerrit Code Review pushed patch set 2 for main to change 74218 04/07/22, 22:38

  3. Gerrit Code Review pushed patch set 1 for 11.5 to change 74235 04/07/22, 22:59

  4. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 04/07/22, 23:05

    Applied in changeset commit:f3194d00bad8a3828a1876d4ef7c2890f3216325.

  5. Benni Mack changed status Resolved Closed 10/04/22, 14:05