Skip to content

Commit

Permalink
Fix token check when removing data via privacy removal request (#30479)
Browse files Browse the repository at this point in the history
* Fix token check

* Use nice token check
  • Loading branch information
SharkyKZ committed Aug 31, 2020
1 parent 9dd137e commit 4546b39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public function invalidate($key = null, $urlVar = null)
public function remove()
{
// Check for request forgeries.
JSession::checkToken('get') or jexit(JText::_('JINVALID_TOKEN'));
$this->checkToken('request');

/** @var PrivacyModelRemove $model */
$model = $this->getModel('Remove');
Expand Down

0 comments on commit 4546b39

Please sign in to comment.