Added urlencode() of object's DN in redirect URL
[ldapsaisie.git] / public_html / create.php
index 498f82a..7b6727c 100644 (file)
@@ -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()));
               }
             }
           }