diff --git a/admin/inc/class.uiaccounts.inc.php b/admin/inc/class.uiaccounts.inc.php
index c99987cded..e7d4135da7 100755
--- a/admin/inc/class.uiaccounts.inc.php
+++ b/admin/inc/class.uiaccounts.inc.php
@@ -204,7 +204,7 @@
{
$var = Array(
'class' => $this->nextmatchs->alternate_row_color('', True),
- 'group_name' => (!$account['account_lid']?' ':$account['account_lid']),
+ 'group_name' => html::htmlspecialchars($account['account_lid']),
'delete_link' => $this->row_action('delete','group',$account['account_id'])
);
$p->set_var($var);
@@ -464,7 +464,13 @@
$account['account_status'].= '
'.$GLOBALS['egw']->common->show_date($account['account_modified'],$GLOBALS['egw_info']['user']['preferences']['common']['dateformat']);
- $p->set_var($account);
+ $p->set_var(array(
+ 'account_id' => $account['account_id'],
+ 'account_lid' => html::htmlspecialchars($account['account_lid']),
+ 'account_firstname' => html::htmlspecialchars($account['account_firstname']),
+ 'account_lastname' => html::htmlspecialchars($account['account_lastname']),
+ 'account_email' => html::htmlspecialchars($account['account_email']),
+ ));
if ($can_edit)
{
@@ -983,9 +989,9 @@
$account =& CreateObject('phpgwapi.accounts',(int)$_GET['account_id'],'u');
$userData = $account->read_repository();
- $var['account_lid'] = $userData['account_lid'];
- $var['account_firstname'] = $userData['firstname'];
- $var['account_lastname'] = $userData['lastname'];
+ $var['account_lid'] = html::htmlspecialchars($userData['account_lid']);
+ $var['account_firstname'] = html::htmlspecialchars($userData['firstname']);
+ $var['account_lastname'] = html::htmlspecialchars($userData['lastname']);
$acl =& CreateObject('phpgwapi.acl',(int)$_GET['account_id']);
$var['anonymous'] = $acl->check('anonymous',1,'phpgwapi') ? ' X' : ' ';
@@ -1044,7 +1050,7 @@
{
while (list(,$group) = each($usergroups))
{
- $group_names[] = $group['account_name'];
+ $group_names[] = html::htmlspecialchars($group['account_name']);
}
$var['groups_select'] = implode(', ',$group_names);
}
@@ -1166,7 +1172,7 @@
'form_action' => $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.'.($group_info['account_id']?'edit':'add').'_group'),
'hidden_vars' => '',
'lang_group_name' => lang('group name'),
- 'group_name_value' => $group_info['account_name'],
+ 'group_name_value' => html::htmlspecialchars($group_info['account_name']),
'lang_include_user' => lang('Select users for inclusion'),
'error' => (!$_errors?'':'