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

index 08fb4df..5733753 100644 (file)
@@ -102,14 +102,14 @@ if(LSsession :: startLSsession()) {
           else {
             $LSview_actions[] = array(
               'label' => _('View'),
-              'url' =>'view.php?LSobject='.$LSobject.'&amp;dn='.$object -> getDn(),
+              'url' =>'view.php?LSobject='.$LSobject.'&amp;dn='.urlencode($object -> getDn()),
               'action' => 'view'
             );
           
             if (LSsession :: canRemove($LSobject,$object -> getDn())) {
               $LSview_actions[] = array(
                 'label' => _('Delete'),
-                'url' => 'remove.php?LSobject='.$LSobject.'&amp;dn='.$object -> getDn(),
+                'url' => 'remove.php?LSobject='.$LSobject.'&amp;dn='.urlencode($object -> getDn()),
                 'action' => 'delete'
               );
             }