Skip to content

Commit 20f13f3

Browse files
committed
Use View::appendData() method instead of View::setData(), which in some setups can clobber the the View::data property
1 parent cb0e3b1 commit 20f13f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Middleware/CsrfGuard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function check() {
6767
}
6868

6969
// Assign to view
70-
$this->app->view()->setData(array(
70+
$this->app->view()->appendData(array(
7171
'csrf_key' => $this->key,
7272
'csrf_token' => $token,
7373
));

0 commit comments

Comments
 (0)