[BUGFIX] Avoid DB error on writing to log 47/32247/2
authorMarkus Klein <klein.t3@reelworx.at>
Tue, 19 Aug 2014 13:10:33 +0000 (15:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 20 Aug 2014 08:17:16 +0000 (10:17 +0200)
commit7bacbd1dfcd9067be1f7606442bdc1b4985a45bc
treef8015b93ccaf7791a89de93d689a4e87dd863b94
parentbaed348e8a2d8ed3298501dc7d17d31cb95204c5
[BUGFIX] Avoid DB error on writing to log

The writeLog() function of the ErrorHandler tries to log the IP that
caused the error. On CLI there is no IP hence a NULL value is being
tried to insert into the DB, where the DB field is NOT NULL.

Fix this by casting the IP to a string.

Resolves: #61051
Releases: 6.3, 6.2
Change-Id: Id46e97468bf825307258e907811d5f2c77c62161
Reviewed-on: http://review.typo3.org/32247
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Daniel Hürtgen <daniel@higidi.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Error/ErrorHandler.php