diff options
-rw-r--r-- | usr/local/www/status_gateways.php | 6 | ||||
-rw-r--r-- | usr/local/www/system_gateways.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index afc73d5..2069f0d 100644 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -83,7 +83,7 @@ include("head.inc"); ?> <tr> <td class="listlr"> - <?=$gateway['name'];?> + <?=htmlspecialchars($gateway['name']);?> </td> <td class="listr" align="center" > <?php echo lookup_gateway_ip_by_name($gname);?> @@ -92,7 +92,7 @@ include("head.inc"); <?php if ($gateways_status[$gname]) echo $gateways_status[$gname]['monitorip']; else - echo $gateway['monitor']; + echo htmlspecialchars($gateway['monitor']); ?> </td> <td class="listr" align="center"> @@ -148,7 +148,7 @@ include("head.inc"); ?> </table> </td> - <td class="listbg"> <?=$gateway['descr']; ?></td> + <td class="listbg"> <?=htmlspecialchars($gateway['descr']); ?></td> </tr> <?php } ?> </table> diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php index aa0d833..0352e36 100644 --- a/usr/local/www/system_gateways.php +++ b/usr/local/www/system_gateways.php @@ -285,7 +285,7 @@ include("head.inc"); <td class="listlr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';"> <?php echo $textss; - echo $gateway['name']; + echo htmlspecialchars($gateway['name']); if(isset($gateway['defaultgw'])) echo " <strong>(default)</strong>"; echo $textse; @@ -301,7 +301,7 @@ include("head.inc"); <td class="listr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';"> <?php echo $textss; - echo $gateway['gateway'] . " "; + echo htmlspecialchars($gateway['gateway']) . " "; echo $textse; ?> </td> |