Added urlencode() of object's DN in customActions links's URL

This commit is contained in:
Benjamin Renard 2012-05-03 14:52:32 +02:00
parent 675f994f1c
commit 093aebd6b9

View file

@ -69,7 +69,7 @@ if(LSsession :: startLSsession()) {
if (LSsession :: canExecuteCustomAction($dn,$LSobject,$name)) {
$LSview_actions[] = array (
'label' => ((isset($config['label']))?__($config['label']):__($name)),
'url' => 'custom_action.php?LSobject='.$LSobject.'&dn='.$dn.'&customAction='.$name,
'url' => 'custom_action.php?LSobject='.$LSobject.'&dn='.urlencode($dn).'&customAction='.$name,
'action' => ((isset($config['icon']))?$config['icon']:'generate'),
'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'')
);