]> source.dussan.org Git - nextcloud-server.git/commit
Check background job type 32666/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 31 May 2022 06:31:38 +0000 (08:31 +0200)
committerJohn Molakvoæ (Rebase PR Action) <skjnldsv@users.noreply.github.com>
Tue, 31 May 2022 15:24:30 +0000 (15:24 +0000)
commitb17c4a60727ac66e05102399b4b9cdd5ce7cf725
tree09b9c12761ceddce30170a204ffe1e089062ac22
parentdf89e7fd393706b1099cbc7345dcb1f069142e43
Check background job type

It is assumed that a job class loaded from the jobs table is an IJob,
but due to programming error the job might be of another type. Then the
setters will most likely fail.

This patch adds an interface type check so only correct jobs are used,
anything else is ignored.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/BackgroundJob/JobList.php