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

index 5d46720..8bc9268 100644 (file)
@@ -49,7 +49,7 @@ if(LSsession :: startLSsession()) {
             if (LSsession :: canCreate($LSobject)) {
               $LSview_actions[] = array(
                 'label' => _('Copy'),
-                'url' =>'create.php?LSobject='.$LSobject.'&amp;load='.$dn,
+                'url' =>'create.php?LSobject='.$LSobject.'&amp;load='.urlencode($dn),
                 'action' => 'copy'
               );
             }
@@ -57,7 +57,7 @@ if(LSsession :: startLSsession()) {
             if (LSsession :: canRemove($LSobject,$dn)) {
               $LSview_actions[] = array(
                 'label' => _('Delete'),
-                'url' => 'remove.php?LSobject='.$LSobject.'&amp;dn='.$dn,
+                'url' => 'remove.php?LSobject='.$LSobject.'&amp;dn='.urlencode($dn),
                 'action' => 'delete'
               );
             }