modify page: fix URL encode object DN in redirection URL

This commit is contained in:
Benjamin Renard 2020-08-25 10:55:28 +02:00
parent a7d202e5ff
commit 75cbea9459

View file

@ -1097,14 +1097,14 @@ function handle_LSobject_modify($request) {
if (isset($_REQUEST['ajax'])) { if (isset($_REQUEST['ajax'])) {
LSsession :: displayAjaxReturn ( LSsession :: displayAjaxReturn (
array( array(
'LSredirect' => "object/$LSobject/".$object -> getDn() 'LSredirect' => "object/$LSobject/".urlencode($object -> getDn())
) )
); );
return true; return true;
} }
else { else {
if (!LSdebugDefined()) { if (!LSdebugDefined()) {
LSurl :: redirect("object/$LSobject/".$object -> getDn()); LSurl :: redirect("object/$LSobject/".urlencode($object -> getDn()));
} }
} }
} }