summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit <git@what.cd>2015-07-07 08:00:26 +0000
committerGit <git@what.cd>2015-07-07 08:00:26 +0000
commit29629c5e9e049e213d21273ab3926ca442587545 (patch)
treeda04e3cfe64bb4a2ff8ee9ffa9fa2375efc43d53
parent96203e631ee4cf30d7b8c25577e24b104415bef4 (diff)
downloadGazelle-29629c5e9e049e213d21273ab3926ca442587545.zip
Gazelle-29629c5e9e049e213d21273ab3926ca442587545.tar.gz
Gazelle-29629c5e9e049e213d21273ab3926ca442587545.tar.bz2
Empty commit
-rw-r--r--classes/regex.php2
-rw-r--r--sections/login/login.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/classes/regex.php b/classes/regex.php
index 42a02df..0fff050 100644
--- a/classes/regex.php
+++ b/classes/regex.php
@@ -5,7 +5,7 @@ define('IP_REGEX', '(\d{1,3}\.){3}\d{1,3}');
define('DOMAIN_REGEX', '([a-z0-9\-\_]+\.)*[a-z0-9\-\_]+');
define('PORT_REGEX', ':\d{1,5}');
define('URL_REGEX', '('.RESOURCE_REGEX.')('.IP_REGEX.'|'.DOMAIN_REGEX.')('.PORT_REGEX.')?(\/\S*)*');
-define('USERNAME_REGEX', '/^[a-z0-9_?]{1,20}$/iD');
+define('USERNAME_REGEX', '/^[a-z0-9_?\.]{1,20}$/iD');
define('EMAIL_REGEX','[_a-z0-9-]+([.+][_a-z0-9-]+)*@'.DOMAIN_REGEX);
define('IMAGE_REGEX', URL_REGEX.'\/\S+\.(jpg|jpeg|tif|tiff|png|gif|bmp)(\?\S*)?');
define('CSS_REGEX', URL_REGEX.'\/\S+\.css(\?\S*)?');
diff --git a/sections/login/login.php b/sections/login/login.php
index 3678939..d46eb42 100644
--- a/sections/login/login.php
+++ b/sections/login/login.php
@@ -26,7 +26,7 @@ if (strtotime($BannedUntil) < time()) {
<tr>
<td>Username&nbsp;</td>
<td colspan="2">
- <input type="text" name="username" id="username" class="inputtext" required="required" maxlength="20" pattern="[A-Za-z0-9_?]{1,20}" autofocus="autofocus" placeholder="Username" />
+ <input type="text" name="username" id="username" class="inputtext" required="required" maxlength="20" pattern="[A-Za-z0-9_?\.]{1,20}" autofocus="autofocus" placeholder="Username" />
</td>
</tr>
<tr>