forked from Snck3rs/contao-leaflet-maps
Add request token to the paste button.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user