Add check that resize was called from correct domain

[MAILPOET-2811]
This commit is contained in:
Rostislav Wolny
2020-05-23 15:59:57 +02:00
committed by Veljko V
parent 7a9f605fb4
commit 0039dec079
7 changed files with 26 additions and 4 deletions

View File

@ -45,6 +45,10 @@ class FormPreview {
if (!isset($this->data['id']) || !isset($this->data['form_type'])) {
return '';
}
return $this->formPreviewPage->renderPage((int)$this->data['id'], (string)$this->data['form_type']);
return $this->formPreviewPage->renderPage(
(int)$this->data['id'],
(string)$this->data['form_type'],
(string)$this->data['editor_url']
);
}
}