From 093aebd6b99b875fde6dd9ec4b61a4ca09e244bd Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 3 May 2012 14:52:32 +0200 Subject: [PATCH] Added urlencode() of object's DN in customActions links's URL --- public_html/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/view.php b/public_html/view.php index 8bc9268f..46dcfc2e 100644 --- a/public_html/view.php +++ b/public_html/view.php @@ -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':'') );