diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-07-20 12:29:11 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-07-20 12:29:11 -0600 |
commit | 3c5828b1a787bffa6e886a4952741e4bcaeb43b9 (patch) | |
tree | 5e40fd78ad3c5301c62207ecfa4bd109a582db69 /signin.php | |
parent | f5e972c030675f46cda543e13da1b787457e070b (diff) |
A bit of code cleanup
Diffstat (limited to 'signin.php')
-rwxr-xr-x | signin.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -18,12 +18,11 @@ <?php
include_once 'includes/error.php';
-function validate($data)
+function validate($data): string
{
$data = trim($data);
$data = stripslashes($data);
- $data = htmlspecialchars($data);
- return $data;
+ return htmlspecialchars($data);
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|