mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-19 08:39:06 +01:00
add urlencode() of object DN in links's URL
This commit is contained in:
parent
89a22de7f9
commit
697369e3ca
1 changed files with 2 additions and 2 deletions
|
@ -102,14 +102,14 @@ if(LSsession :: startLSsession()) {
|
||||||
else {
|
else {
|
||||||
$LSview_actions[] = array(
|
$LSview_actions[] = array(
|
||||||
'label' => _('View'),
|
'label' => _('View'),
|
||||||
'url' =>'view.php?LSobject='.$LSobject.'&dn='.$object -> getDn(),
|
'url' =>'view.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn()),
|
||||||
'action' => 'view'
|
'action' => 'view'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (LSsession :: canRemove($LSobject,$object -> getDn())) {
|
if (LSsession :: canRemove($LSobject,$object -> getDn())) {
|
||||||
$LSview_actions[] = array(
|
$LSview_actions[] = array(
|
||||||
'label' => _('Delete'),
|
'label' => _('Delete'),
|
||||||
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$object -> getDn(),
|
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn()),
|
||||||
'action' => 'delete'
|
'action' => 'delete'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue