Add request token to the paste button.

This commit is contained in:
David Molineus
2017-10-09 17:09:52 +02:00
parent 6004138e4e
commit 5167318c43

View File

@@ -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(