From 89a22de7f92d74b5936b80f3f1d7e8d88ca46931 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 3 May 2012 14:41:35 +0200 Subject: [PATCH] Added urlencode() of object's DN in create and remove links's URL --- public_html/includes/class/class.LSsearchEntry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/includes/class/class.LSsearchEntry.php b/public_html/includes/class/class.LSsearchEntry.php index d8f5dec9..00e68063 100644 --- a/public_html/includes/class/class.LSsearchEntry.php +++ b/public_html/includes/class/class.LSsearchEntry.php @@ -151,7 +151,7 @@ class LSsearchEntry { if ($this -> LSsearch -> canCopy) { $this -> cache['actions'][] = array( 'label' => _('Copy'), - 'url' =>'create.php?LSobject='.$this -> LSobject.'&load='.$this -> dn, + 'url' =>'create.php?LSobject='.$this -> LSobject.'&load='.urlencode($this -> dn), 'action' => 'copy' ); } @@ -159,7 +159,7 @@ class LSsearchEntry { if (LSsession :: canRemove($this -> LSobject,$this -> dn)) { $this -> cache['actions'][] = array ( 'label' => _('Delete'), - 'url' => 'remove.php?LSobject='.$this -> LSobject.'&dn='.$this -> dn, + 'url' => 'remove.php?LSobject='.$this -> LSobject.'&dn='.urlencode($this -> dn), 'action' => 'delete' ); }