diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index 79f003a6..d42eb3f3 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -412,7 +412,7 @@ class lamList { echo("type . "list\" onMouseOver=\"list_over(this, '" . $rowID . "', '" . $this->type . "')\"\n" . " onMouseOut=\"list_out(this, '" . $rowID . "', '" . $this->type . "')\"\n" . " onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"\n" . - " onDblClick=\"parent.location.href='../account/edit.php?type=" . $this->type . "&DN=" . $info[$i]['dn'] . "'\">\n"); + " onDblClick=\"parent.location.href='../account/edit.php?type=" . $this->type . "&DN=" . rawurlencode($info[$i]['dn']) . "'\">\n"); if (isset($_GET['selectall'])) { echo " type . "')\"" . " type=\"checkbox\" checked name=\"" . $rowID . "\">\n"; @@ -451,12 +451,12 @@ class lamList { */ private function listPrintToolLinks($account, $id) { // edit image - echo "type . "&DN='" . $account['dn'] . "'\">"; + echo "type . "&DN='" . rawurlencode($account['dn']) . "'\">"; echo "\"""; echo "\n "; // delete image if (checkIfWriteAccessIsAllowed()) { - echo "type . "&DN='" . $account['dn'] . "'\">"; + echo "type . "&DN='" . rawurlencode($account['dn']) . "'\">"; echo "\"""; echo "\n "; } @@ -465,7 +465,7 @@ class lamList { // additional tools $tools = $this->getAdditionalTools(); for ($i = 0; $i < sizeof($tools); $i++) { - echo "getLinkTarget() . "?type=" . $this->type . "&DN='" . $account['dn'] . "'\">"; + echo "getLinkTarget() . "?type=" . $this->type . "&DN='" . rawurlencode($account['dn']) . "'\">"; echo "getImage() . "\" alt=\"" . $tools[$i]->getName() . "\" title=\"" . $tools[$i]->getName() . "\">"; echo "\n "; } diff --git a/lam/templates/lists/userlink.php b/lam/templates/lists/userlink.php index d548794f..a33be6da 100644 --- a/lam/templates/lists/userlink.php +++ b/lam/templates/lists/userlink.php @@ -52,7 +52,7 @@ $dn = search_username($user); if ($dn) { // redirect to account/edit.php - metaRefresh("../account/edit.php?type=user&DN='$dn'"); + metaRefresh("../account/edit.php?type=user&DN='" . rawurlencode($dn) . "'"); } else {