Skip to content

Commit 190669d

Browse files
committed
Security typos changes
1 parent 999d9f1 commit 190669d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

system/Security/Security.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ class Security
163163
* setup initial state.
164164
*
165165
* @param \Config\App $config
166+
*
167+
* @throws \Exception
166168
*/
167169
public function __construct($config)
168170
{
@@ -192,9 +194,10 @@ public function __construct($config)
192194
/**
193195
* CSRF Verify
194196
*
195-
* @param RequestInterface $request
197+
* @param RequestInterface $request
198+
*
196199
* @return $this|false
197-
* @throws \LogicException
200+
* @throws \Exception
198201
*/
199202
public function CSRFVerify(RequestInterface $request)
200203
{
@@ -330,7 +333,7 @@ protected function CSRFSetHash(): string
330333
*
331334
* @return string
332335
*/
333-
public function sanitizeFilename($str, $relative_path = false)
336+
public function sanitizeFilename(string $str, bool $relative_path = false): string
334337
{
335338
$bad = $this->filenameBadChars;
336339

0 commit comments

Comments
 (0)