[BUGFIX] Linkvalidator: Scheduler task not working correctly 80/52780/2
authorThorben Nissen <thorben.nissen@kapp-hamburg.de>
Tue, 25 Apr 2017 07:51:57 +0000 (09:51 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 May 2017 15:31:19 +0000 (17:31 +0200)
commitd949da95e95f100f1df696323c4445b0f6a1e8fd
tree8547960bc87a3a665ae33b89104ed3373c6db265
parent564c71b5fdfdbff4cfef8322b1e9522378bd0d0c
[BUGFIX] Linkvalidator: Scheduler task not working correctly

The scheduler task does not check anything but just returns and does not
send an email. Furthermore it is not possible to enter email address
separated by newlines. Under some conditions it can happen, that result
numbers are added to the last result.

Explode pid list into array in LinkAnalyzer::init and use the array later.
Check if email adresses are comma or newline separated when validating
them when saving the task. Add file link statistic to default email
template. Reset the link statistics before the run to avoid adding it to
the last result numbers.

Resolves: #81000
Releases: master, 8.7
Change-Id: I05a98c9babcb889a83ce2f1ec7c0a2bee5dafede
Reviewed-on: https://review.typo3.org/52780
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php
typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php
typo3/sysext/linkvalidator/Classes/Task/ValidatorTaskAdditionalFieldProvider.php
typo3/sysext/linkvalidator/Resources/Private/Templates/mailtemplate.html