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

This commit is contained in:
Benjamin Renard 2012-05-03 14:41:35 +02:00
parent d36cc2d215
commit 89a22de7f9

View file

@ -151,7 +151,7 @@ class LSsearchEntry {
if ($this -> LSsearch -> canCopy) {
$this -> cache['actions'][] = array(
'label' => _('Copy'),
'url' =>'create.php?LSobject='.$this -> LSobject.'&load='.$this -> dn,
'url' =>'create.php?LSobject='.$this -> LSobject.'&load='.urlencode($this -> dn),
'action' => 'copy'
);
}
@ -159,7 +159,7 @@ class LSsearchEntry {
if (LSsession :: canRemove($this -> LSobject,$this -> dn)) {
$this -> cache['actions'][] = array (
'label' => _('Delete'),
'url' => 'remove.php?LSobject='.$this -> LSobject.'&dn='.$this -> dn,
'url' => 'remove.php?LSobject='.$this -> LSobject.'&dn='.urlencode($this -> dn),
'action' => 'delete'
);
}