From c320f57cb860b541c53784a038523fbca27cb2eb Mon Sep 17 00:00:00 2001 From: xzilla Date: Mon, 25 Feb 2008 17:20:44 +0000 Subject: [PATCH] remove hardcoded maximum length attributes which were incorrect, add a restriction on name equal to maxNameLen (defined per version) --- roles.php | 20 ++++++++++---------- users.php | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/roles.php b/roles.php index 2054fbf4..016e23d2 100644 --- a/roles.php +++ b/roles.php @@ -3,7 +3,7 @@ /** * Manage roles in a database cluster * - * $Id: roles.php,v 1.11 2007/09/13 13:41:01 ioguix Exp $ + * $Id: roles.php,v 1.12 2008/02/25 17:20:44 xzilla Exp $ */ // Include application functions @@ -35,11 +35,11 @@ echo "
\n"; echo "\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; echo "\t\t\n\t\n"; @@ -58,7 +58,7 @@ echo "\t\n\t\t\n"; echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; $roles = $data->getRoles(); if ($roles->recordCount() > 0) { @@ -173,11 +173,11 @@ echo "\n"; echo "
{$lang['strname']}
_maxNameLen\" name=\"formRolename\" value=\"", htmlspecialchars($_POST['formRolename']), "\" />
{$lang['strpassword']}
{$lang['strconfirm']}
{$lang['strconnlimit']}
{$lang['strexpires']}
\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; echo "\t\t\n\t\n"; @@ -194,9 +194,9 @@ echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; if (!isset($_POST['memberof'])) { diff --git a/users.php b/users.php index 99b3da37..3121d582 100644 --- a/users.php +++ b/users.php @@ -3,7 +3,7 @@ /** * Manage users in a database cluster * - * $Id: users.php,v 1.39 2007/08/31 18:30:11 ioguix Exp $ + * $Id: users.php,v 1.40 2008/02/25 17:20:44 xzilla Exp $ */ // Include application functions @@ -130,7 +130,7 @@ echo "\n"; echo "
{$lang['strname']}", ($canRename ? "" : $misc->printVal($roledata->fields['rolname'])), "
", ($canRename ? "_maxNameLen}\" value=\"" . htmlspecialchars($_POST['formNewRoleName']) . "\" />" : $misc->printVal($roledata->fields['rolname'])), "
{$lang['strpassword']}
{$lang['strconfirm']}
{$lang['strconnlimit']}
{$lang['strexpires']}
\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; echo "\t\t\n\t\n"; @@ -224,7 +224,7 @@ echo "\n"; echo "
{$lang['strusername']}", ($canRename ? "" : $misc->printVal($userdata->fields['usename'])), "
", ($canRename ? "_maxNameLen}\" value=\"" . htmlspecialchars($_POST['newname']) . "\" />" : $misc->printVal($userdata->fields['usename'])), "
\n"; echo "\t\n\t\t\n"; - echo "\t\t\n\t\n"; + echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; echo "\t\t\n\t\n"; echo "\t\n\t\t\n"; -- 2.39.5
{$lang['strusername']}
_maxNameLen}\" name=\"formUsername\" value=\"", htmlspecialchars($_POST['formUsername']), "\" />
{$lang['strpassword']}
{$lang['strconfirm']}