Added urlencode() of object's DN in copy and remove links's URL

This commit is contained in:
Benjamin Renard 2012-05-03 14:43:46 +02:00
parent 4a80c35557
commit 675f994f1c

View file

@ -49,7 +49,7 @@ if(LSsession :: startLSsession()) {
if (LSsession :: canCreate($LSobject)) { if (LSsession :: canCreate($LSobject)) {
$LSview_actions[] = array( $LSview_actions[] = array(
'label' => _('Copy'), 'label' => _('Copy'),
'url' =>'create.php?LSobject='.$LSobject.'&load='.$dn, 'url' =>'create.php?LSobject='.$LSobject.'&load='.urlencode($dn),
'action' => 'copy' 'action' => 'copy'
); );
} }
@ -57,7 +57,7 @@ if(LSsession :: startLSsession()) {
if (LSsession :: canRemove($LSobject,$dn)) { if (LSsession :: canRemove($LSobject,$dn)) {
$LSview_actions[] = array( $LSview_actions[] = array(
'label' => _('Delete'), 'label' => _('Delete'),
'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$dn, 'url' => 'remove.php?LSobject='.$LSobject.'&dn='.urlencode($dn),
'action' => 'delete' 'action' => 'delete'
); );
} }