Skip to content

Commit 3534233

Browse files
committed
Fixed included triggering on other request-types than post
1 parent 0f55480 commit 3534233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pecee/Http/Middleware/BaseCsrfVerifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected function skip(Request $request): bool
9898
*/
9999
public function handle(Request $request): void
100100
{
101-
if ($this->skip($request) === false && ($request->isPostBack() === true || $this->isIncluded($request) === true)) {
101+
if ($this->skip($request) === false && ($request->isPostBack() === true || $request->isPostBack() === true && $this->isIncluded($request) === true)) {
102102

103103
$token = $request->getInputHandler()->value(
104104
static::POST_KEY,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy