Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion assets/plugins/updater/plugin.updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,10 @@ function updaterHandleSystemTaskRequest()
updaterJsonResponse([
'ok' => false,
'error_code' => 'TOKEN_INVALID',
'message' => 'System task token is invalid.',
// the plugin may run on a core older than this class while it is being updated
'message' => class_exists(\EvolutionCMS\Support\CsrfMessage::class)
? \EvolutionCMS\Support\CsrfMessage::text()
: 'System task token is invalid.',
]);
}
}
Expand Down
Loading
Loading