summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-10-25 10:52:30 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2015-10-25 10:57:46 +0100
commitd52b2f50b9a5b77330c41dd93e0f3177b810c018 (patch)
tree44b7006397632e6c0bf29af1e6978fc6f2fa75f5 /web/html
parentf9ac67f6917eb5f4db89cf8407a33ad37d7f3935 (diff)
downloadaur-d52b2f50b9a5b77330c41dd93e0f3177b810c018.tar.gz
aur-d52b2f50b9a5b77330c41dd93e0f3177b810c018.tar.xz
Support long email addresses
According to RFC 3696 (and the associated errata), an email address can be up to 256 characters long. Change the database field and the length limit on all input fields accordingly. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/login.php b/web/html/login.php
index cef9be48..0a2a1c97 100644
--- a/web/html/login.php
+++ b/web/html/login.php
@@ -29,7 +29,7 @@ html_header('AUR ' . __("Login"));
<?php endif; ?>
<p>
<label for="id_username"><?= __('User name or email address') . ':'; ?></label>
- <input id="id_username" type="text" name="user" size="30" maxlength="<?= config_get_int('options', 'username_max_len'); ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" autofocus="autofocus" />
+ <input id="id_username" type="text" name="user" size="30" maxlength="<?= max(config_get_int('options', 'username_max_len'), 256); ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" autofocus="autofocus" />
</p>
<p>
<label for="id_password"><?= __('Password') . ':'; ?></label>