Signed-off-by: Aleksandar 'The Cobra' Widulski <thecobra@riseup.net>
This commit is contained in:
Aleksandar 'The Cobra' Widulski 2022-06-03 11:33:20 -04:00
parent 61c4e9db97
commit 3844c6443d
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 1 additions and 3 deletions

View File

@ -25,8 +25,6 @@
$username_re = '/^[a-z_][a-z0-9_]{0,30}$/';
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$request_ip = $_SERVER['REMOTE_ADDR'];
if (!empty($_POST['username'])) {
if (preg_match($username_re, $_POST['username']) === 1) {
$ret = 0;
@ -96,7 +94,7 @@
<h1>Sign Up</h1>
<span class="red">* Required field</span>
<form method="post" action='' . htmlspecialchars($_SERVER["PHP_SELF"])>
<form method="post" action="<?php htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
Username:
<input type="text" name="username">
<span class="red">* <?php echo $username_err; ?></span><br>