summaryrefslogtreecommitdiff
path: root/signin.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-07-20 12:29:11 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-07-20 12:29:11 -0600
commit3c5828b1a787bffa6e886a4952741e4bcaeb43b9 (patch)
tree5e40fd78ad3c5301c62207ecfa4bd109a582db69 /signin.php
parentf5e972c030675f46cda543e13da1b787457e070b (diff)
A bit of code cleanup
Diffstat (limited to 'signin.php')
-rwxr-xr-xsignin.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/signin.php b/signin.php
index 195895a..c2ee5a6 100755
--- a/signin.php
+++ b/signin.php
@@ -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') {