Skip to content

Commit

Permalink
Trim - from prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Jun 8, 2024
1 parent a35c45d commit 0a9c7f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Guard.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Guard implements MiddlewareInterface
protected ResponseFactoryInterface $responseFactory;

/**
* Prefix for CSRF parameters (omit trailing "_" underscore)
* Prefix for CSRF parameters (omit trailing "-")
*/
protected string $prefix;

Expand Down Expand Up @@ -122,7 +122,7 @@ public function __construct(
}

$this->responseFactory = $responseFactory;
$this->prefix = rtrim($prefix, '_');
$this->prefix = rtrim($prefix, '-');
$this->strength = $strength;

$this->setStorage($storage);
Expand Down

0 comments on commit 0a9c7f3

Please sign in to comment.