Fix case sensitivity in app folders
This commit is contained in:
21
app/core/Security.php
Normal file
21
app/core/Security.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Simple Security Helpers
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Core;
|
||||
|
||||
final class Security
|
||||
{
|
||||
public static function sanitize(string $data): string
|
||||
{
|
||||
return htmlspecialchars(strip_tags(trim($data)));
|
||||
}
|
||||
|
||||
public static function generateRandomString(int $length = 32): string
|
||||
{
|
||||
return bin2hex(random_bytes($length / 2));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user