Skip to content

Commit

Permalink
Bug fix with calling to a function validateCsrfToken() on string
Browse files Browse the repository at this point in the history
  • Loading branch information
itstructure committed Apr 17, 2021
1 parent dc9ce93 commit 0f8268a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Addition module description you can see in my [Personal site](https://pack-devel

Via composer:

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

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

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### CHANGE LOG:

**3.2.3 April 17, 2021:**
- Bug fix: **Call to a member function validateCsrfToken() on string**.

**3.2.2 February 23, 2021:**
- Upgrade copyright year.

Expand Down
2 changes: 2 additions & 0 deletions src/controllers/upload/CommonUploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ abstract protected function getUploadComponent(): UploadComponentInterface;
public function init()
{
$this->enableCsrfValidation = $this->module->enableCsrfValidation;

parent::init();
}

/**
Expand Down

0 comments on commit 0f8268a

Please sign in to comment.