Added urlencode() of object's DN in redirect URL
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 3 May 2012 10:39:08 +0000 (12:39 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 3 May 2012 10:39:08 +0000 (12:39 +0200)
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()));
               }
             }
           }