From 675f994f1cae7173f265bb7dfab791af272fdd52 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 3 May 2012 14:43:46 +0200 Subject: [PATCH] Added urlencode() of object's DN in copy and remove links's URL --- public_html/view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/view.php b/public_html/view.php index 5d467208..8bc9268f 100644 --- a/public_html/view.php +++ b/public_html/view.php @@ -49,7 +49,7 @@ if(LSsession :: startLSsession()) { if (LSsession :: canCreate($LSobject)) { $LSview_actions[] = array( 'label' => _('Copy'), - 'url' =>'create.php?LSobject='.$LSobject.'&load='.$dn, + 'url' =>'create.php?LSobject='.$LSobject.'&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.'&dn='.$dn, + 'url' => 'remove.php?LSobject='.$LSobject.'&dn='.urlencode($dn), 'action' => 'delete' ); }