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'
);
}