Added urlencode() of object's DN in redirect URL

This commit is contained in:
Benjamin Renard 2012-05-03 12:39:08 +02:00
parent a8e375589d
commit fe323be9b0

View 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()));
}
}
}