summaryrefslogtreecommitdiff
path: root/users.php
diff options
context:
space:
mode:
authorxzilla2008-02-25 17:40:33 +0000
committerxzilla2008-02-25 17:40:33 +0000
commitfcb7cdff42ccdbba2ffb0b302a4f17b8977ffd87 (patch)
tree0890e598407beb67fa858590c2a599cb62b8f781 /users.php
parent26a84eea9691f5ae991ecf37bda0d32198710ce7 (diff)
backpatch max legnth clean up, prompted by BUG# [ 1901462 ] role name truncationREL_4_1
Diffstat (limited to 'users.php')
-rw-r--r--users.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/users.php b/users.php
index ed4d1617..7ad1d8af 100644
--- a/users.php
+++ b/users.php
@@ -3,7 +3,7 @@
/**
* Manage users in a database cluster
*
- * $Id: users.php,v 1.32.2.2 2007/07/09 14:55:22 xzilla Exp $
+ * $Id: users.php,v 1.32.2.3 2008/02/25 17:40:33 xzilla Exp $
*/
// Include application functions
@@ -131,7 +131,7 @@
echo $misc->form;
echo "<table>\n";
echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strusername']}</th>\n";
- echo "\t\t<td class=\"data1\">", ($canRename ? "<input name=\"newname\" size=\"15\" value=\"" . htmlspecialchars($_POST['newname']) . "\" />" : $misc->printVal($userdata->f['usename'])), "</td>\n\t</tr>\n";
+ echo "\t\t<td class=\"data1\">", ($canRename ? "<input name=\"newname\" size=\"15\" maxlength=\"{$data->maxNameLen}\" value=\"" . htmlspecialchars($_POST['newname']) . "\" />" : $misc->printVal($userdata->f['usename'])), "</td>\n\t</tr>\n";
echo "\t<tr>\n\t\t<th class=\"data left\"><label for=\"formSuper\">{$lang['strsuper']}</label></th>\n";
echo "\t\t<td class=\"data1\"><input type=\"checkbox\" id=\"formSuper\" name=\"formSuper\"",
(isset($_POST['formSuper'])) ? ' checked="checked"' : '', " /></td>\n\t</tr>\n";
@@ -225,7 +225,7 @@
echo $misc->form;
echo "<table>\n";
echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strusername']}</th>\n";
- echo "\t\t<td class=\"data1\"><input size=\"15\" name=\"formUsername\" value=\"", htmlspecialchars($_POST['formUsername']), "\" /></td>\n\t</tr>\n";
+ echo "\t\t<td class=\"data1\"><input size=\"15\" maxlength=\"{$data->_maxNameLen}\" name=\"formUsername\" value=\"", htmlspecialchars($_POST['formUsername']), "\" /></td>\n\t</tr>\n";
echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strpassword']}</th>\n";
echo "\t\t<td class=\"data1\"><input size=\"15\" type=\"password\" name=\"formPassword\" value=\"", htmlspecialchars($_POST['formPassword']), "\" /></td>\n\t</tr>\n";
echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strconfirm']}</th>\n";