Added urlencode() of object's DN in customActions links's URL
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 3 May 2012 12:52:32 +0000 (14:52 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 3 May 2012 12:52:32 +0000 (14:52 +0200)
public_html/view.php

index 8bc9268..46dcfc2 100644 (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.'&amp;dn='.$dn.'&amp;customAction='.$name,
+                    'url' => 'custom_action.php?LSobject='.$LSobject.'&amp;dn='.urlencode($dn).'&amp;customAction='.$name,
                     'action' => ((isset($config['icon']))?$config['icon']:'generate'),
                     'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'')
                   );