[BUGFIX] Don't save form protection error messages in session
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 25 Sep 2011 14:52:53 +0000 (16:52 +0200)
committerGeorg Ringer <mail@ringerge.org>
Tue, 7 Feb 2012 07:27:59 +0000 (08:27 +0100)
commitae4e56c2ac47716747c3ee00a737367e4b1b640c
tree25bad5c6a7867dfdd9ce8c63779ac4b121f1f1f7
parentcf878c157db8181769e9d2a0d74f19b5b4db3dbf
[BUGFIX] Don't save form protection error messages in session

Do not persist flash messages in the session if we are in an Ajax context
because then the flash message is rendered out of context the next time
the flash message queue is flushed.

Change-Id: Id47b11b661264ebac37922c3356b64cbde8516c3
Resolves: #30272
Releases: 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/5327
Reviewed-by: Oliver Klee
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/formprotection/class.t3lib_formprotection_backendformprotection.php
tests/t3lib/formprotection/class.t3lib_formprotection_BackendFormProtectionTest.php