Skip to content

Commit 0f8268a

Browse files
committed
Bug fix with calling to a function validateCsrfToken() on string
1 parent dc9ce93 commit 0f8268a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Addition module description you can see in my [Personal site](https://pack-devel
4444

4545
Via composer:
4646

47-
`composer require itstructure/yii2-multi-format-uploader ~3.2.2`
47+
`composer require itstructure/yii2-multi-format-uploader ~3.2.3`
4848

4949
### If you are testing this package from local server directory
5050

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
### CHANGE LOG:
22

3+
**3.2.3 April 17, 2021:**
4+
- Bug fix: **Call to a member function validateCsrfToken() on string**.
5+
36
**3.2.2 February 23, 2021:**
47
- Upgrade copyright year.
58

src/controllers/upload/CommonUploadController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ abstract protected function getUploadComponent(): UploadComponentInterface;
5151
public function init()
5252
{
5353
$this->enableCsrfValidation = $this->module->enableCsrfValidation;
54+
55+
parent::init();
5456
}
5557

5658
/**

0 commit comments

Comments
 (0)