diff --git a/public_html/create.php b/public_html/create.php
index 498f82a4..7b6727c1 100644
--- a/public_html/create.php
+++ b/public_html/create.php
@@ -61,14 +61,14 @@ if(LSsession :: startLSsession()) {
if (isset($_REQUEST['ajax'])) {
LSsession :: displayAjaxReturn (
array(
- 'LSredirect' => 'view.php?LSobject='.$LSobject.'&dn='.$object -> getDn()
+ 'LSredirect' => 'view.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn())
)
);
exit();
}
else {
if (!LSdebugDefined()) {
- LSsession :: redirect('view.php?LSobject='.$LSobject.'&dn='.$object -> getDn());
+ LSsession :: redirect('view.php?LSobject='.$LSobject.'&dn='.urlencode($object -> getDn()));
}
}
}