add urlencode() of object DN in links's URL

This commit is contained in:
Benjamin Renard 2012-05-03 14:42:25 +02:00
parent 89a22de7f9
commit 697369e3ca

View file

@ -102,14 +102,14 @@ if(LSsession :: startLSsession()) {
else {
$LSview_actions[] = array(
'label' => _('View'),
'url' =>'view.php?LSobject='.$LSobject.'&dn='.$object -> getDn(),
'url' =>'view.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn()),
'action' => 'view'
);
if (LSsession :: canRemove($LSobject,$object -> getDn())) {
$LSview_actions[] = array(
'label' => _('Delete'),
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$object -> getDn(),
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn()),
'action' => 'delete'
);
}