escape email address, use translated phrase

This commit is contained in:
Uwe Steinmann 2021-01-28 12:02:22 +01:00
parent 788b5b0014
commit 8129221b57

View File

@ -144,7 +144,7 @@ $(document).ready( function() {
echo "<tr>"; echo "<tr>";
echo "<td>"; echo "<td>";
echo htmlspecialchars($currUser->getFullName())." (".htmlspecialchars($currUser->getLogin()).")"; echo htmlspecialchars($currUser->getFullName())." (".htmlspecialchars($currUser->getLogin()).")";
echo "<br /><a href=\"mailto:".$currUser->getEmail()."\">".htmlspecialchars($currUser->getEmail())."</a>"; echo "<br /><a href=\"mailto:".htmlspecialchars($currUser->getEmail())."\">".htmlspecialchars($currUser->getEmail())."</a>";
if($currUser->getComment()) if($currUser->getComment())
echo "<br /><small>".htmlspecialchars($currUser->getComment())."</small>"; echo "<br /><small>".htmlspecialchars($currUser->getComment())."</small>";
echo "</td>"; echo "</td>";
@ -281,7 +281,7 @@ $(document).ready( function() {
echo "<button id=\"add_aro\" class=\"btn btn-primary\" data-roleid=\"".$selrole->getID()."\">".getMLText('add')."</button>"; echo "<button id=\"add_aro\" class=\"btn btn-primary\" data-roleid=\"".$selrole->getID()."\">".getMLText('add')."</button>";
} else { } else {
?> ?>
<div id="acostree" data-url="out.Acl.php?action=tree&roleid=<?= ($selrole ? $selrole->getID() : 0) ?>">Berechtigungen werden geladen ...</div> <div id="acostree" data-url="out.Acl.php?action=tree&roleid=<?= ($selrole ? $selrole->getID() : 0) ?>"><?= getMLText('data_loading')?></div>
<?php <?php
} }
} }