From 5167318c43f7359fb17673fd3c53153c1a7d6082 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Mon, 9 Oct 2017 17:09:52 +0200 Subject: [PATCH] Add request token to the paste button. --- src/Listener/Dca/LayerDcaListener.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Listener/Dca/LayerDcaListener.php b/src/Listener/Dca/LayerDcaListener.php index 162b119..e156c4a 100644 --- a/src/Listener/Dca/LayerDcaListener.php +++ b/src/Listener/Dca/LayerDcaListener.php @@ -14,6 +14,7 @@ namespace Netzmacht\Contao\Leaflet\Listener\Dca; use Contao\Controller; use Contao\Image; +use Contao\RequestToken; use Contao\StringUtil; use Doctrine\DBAL\Connection; use Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\LayerLabelRenderer; @@ -224,6 +225,7 @@ class LayerDcaListener extends AbstractListener $pasteAfterUrl = \Controller::addToUrl( 'act='.$children['mode'].'&mode=1&pid='.$row['id'] .(!is_array($children['id']) ? '&id='.$children['id'] : '') + . '&rt=' . RequestToken::get() ); $buffer = sprintf(