Improved XSS avoidance
This commit is contained in:
parent
1f4895e143
commit
1023242325
1 changed files with 3 additions and 3 deletions
|
@ -37,13 +37,13 @@
|
||||||
$domcount = mysql_num_rows($r2);
|
$domcount = mysql_num_rows($r2);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="DataTD"><?=($row['O'])?>, <?=($row['ST'])?> <?=($row['C'])?></td>
|
<td class="DataTD"><?=htmlspecialchars($row['O'])?>, <?=htmlspecialchars($row['ST'])?> <?=htmlspecialchars($row['C'])?></td>
|
||||||
<td class="DataTD"><a href="account.php?id=26&orgid=<?=$row['id']?>"><?=_("Domains")?> (<?=$domcount?>)</a></td>
|
<td class="DataTD"><a href="account.php?id=26&orgid=<?=intval($row['id'])?>"><?=_("Domains")?> (<?=$domcount?>)</a></td>
|
||||||
<td class="DataTD"><a href="account.php?id=32&orgid=<?=$row['id']?>"><?=_("Admins")?> (<?=$admincount?>)</a></td>
|
<td class="DataTD"><a href="account.php?id=32&orgid=<?=$row['id']?>"><?=_("Admins")?> (<?=$admincount?>)</a></td>
|
||||||
<td class="DataTD"><a href="account.php?id=27&orgid=<?=$row['id']?>"><?=_("Edit")?></a></td>
|
<td class="DataTD"><a href="account.php?id=27&orgid=<?=$row['id']?>"><?=_("Edit")?></a></td>
|
||||||
<td class="DataTD"><a href="account.php?id=31&orgid=<?=$row['id']?>"><?=_("Delete")?></a></td>
|
<td class="DataTD"><a href="account.php?id=31&orgid=<?=$row['id']?>"><?=_("Delete")?></a></td>
|
||||||
<? if(array_key_exists('viewcomment',$_REQUEST) && $_REQUEST['viewcomment']!='') { ?>
|
<? if(array_key_exists('viewcomment',$_REQUEST) && $_REQUEST['viewcomment']!='') { ?>
|
||||||
<td class="DataTD"><?=($row['comments'])?></td>
|
<td class="DataTD"><?=sanitizeHTML($row['comments'])?></td>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
Loading…
Reference in a new issue