diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-05-07 20:37:27 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-05-07 20:37:27 +0000 |
commit | cee476e88622b5d8856a3913a44bf41f719f9c37 (patch) | |
tree | 822b605696c11510351b514acbf35cfd94570ee3 /usr | |
parent | db2872a2841af753ddea495700dea9ccfee0e489 (diff) | |
download | pfsense-cee476e88622b5d8856a3913a44bf41f719f9c37.zip pfsense-cee476e88622b5d8856a3913a44bf41f719f9c37.tar.gz |
Correctly enforce limits on html input.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_camanager.php | 2 | ||||
-rw-r--r-- | usr/local/www/system_certmanager.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_camanager.php b/usr/local/www/system_camanager.php index b2d697e..1015cb4 100644 --- a/usr/local/www/system_camanager.php +++ b/usr/local/www/system_camanager.php @@ -306,7 +306,7 @@ function method_change() { <tr> <td align="right">Country Code : </td> <td align="left"> - <input name="dn_country" type="text" class="formfld unknown" size="2" value="<?=htmlspecialchars($pconfig['dn_country']);?>"/> + <input name="dn_country" type="text" class="formfld unknown" maxlength="2" size="2" value="<?=htmlspecialchars($pconfig['dn_country']);?>"/> <em>ex:</em> diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php index dc58aed..cf9035b 100644 --- a/usr/local/www/system_certmanager.php +++ b/usr/local/www/system_certmanager.php @@ -486,7 +486,7 @@ function internalca_change() { <tr> <td align="right">Country Code : </td> <td align="left"> - <input name="dn_country" type="text" class="formfld unknown" size="2" value="<?=htmlspecialchars($pconfig['dn_country']);?>" readonly/> + <input name="dn_country" type="text" class="formfld unknown" maxlength="2" size="2" value="<?=htmlspecialchars($pconfig['dn_country']);?>" readonly/> </td> </tr> <tr> |