From 697369e3ca6ff3e21f50e086d1c786c86de089db Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 3 May 2012 14:42:25 +0200 Subject: [PATCH] add urlencode() of object DN in links's URL --- public_html/modify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/modify.php b/public_html/modify.php index 08fb4dfa..57337536 100644 --- a/public_html/modify.php +++ b/public_html/modify.php @@ -102,14 +102,14 @@ if(LSsession :: startLSsession()) { else { $LSview_actions[] = array( 'label' => _('View'), - 'url' =>'view.php?LSobject='.$LSobject.'&dn='.$object -> getDn(), + 'url' =>'view.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn()), 'action' => 'view' ); if (LSsession :: canRemove($LSobject,$object -> getDn())) { $LSview_actions[] = array( 'label' => _('Delete'), - 'url' => 'remove.php?LSobject='.$LSobject.'&dn='.$object -> getDn(), + 'url' => 'remove.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn()), 'action' => 'delete' ); }