summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-07 20:37:27 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-07 20:37:27 +0000
commitcee476e88622b5d8856a3913a44bf41f719f9c37 (patch)
tree822b605696c11510351b514acbf35cfd94570ee3 /usr
parentdb2872a2841af753ddea495700dea9ccfee0e489 (diff)
downloadpfsense-cee476e88622b5d8856a3913a44bf41f719f9c37.zip
pfsense-cee476e88622b5d8856a3913a44bf41f719f9c37.tar.gz
Correctly enforce limits on html input.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_camanager.php2
-rw-r--r--usr/local/www/system_certmanager.php2
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 : &nbsp;</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']);?>"/>
&nbsp;
<em>ex:</em>
&nbsp;
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 : &nbsp;</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>
OpenPOWER on IntegriCloud