summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-02-19 18:29:21 +0100
committerBenny Baumann <BenBE@geshi.org>2013-02-19 19:26:58 +0100
commit15e708ae893f19f5df7756efb6099d83417f4259 (patch)
treed07006fee33ea06dc19cb99558382e8f93326e4b
parent387fde16ca52b6ccfc5a46be99219cd09a7411ce (diff)
downloadcacert-devel-15e708ae893f19f5df7756efb6099d83417f4259.tar.gz
cacert-devel-15e708ae893f19f5df7756efb6099d83417f4259.tar.xz
cacert-devel-15e708ae893f19f5df7756efb6099d83417f4259.zip
bug 964: Be a bit more paranoid here ...
-rw-r--r--includes/keygen.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/keygen.php b/includes/keygen.php
index da80aa0..09ec7f9 100644
--- a/includes/keygen.php
+++ b/includes/keygen.php
@@ -43,7 +43,7 @@ if (array_key_exists('HTTP_USER_AGENT',$_SERVER) && strstr($_SERVER['HTTP_USER_A
<form method="post" style="display:none" action="account.php"
id="CertReqForm">
- <input type="hidden" name="oldid" value="<?=$id?>" />
+ <input type="hidden" name="oldid" value="<?=intval($id)?>" />
<input type="hidden" id="CSR" name="CSR" />
<input type="hidden" name="keytype" value="MS" />
@@ -122,7 +122,7 @@ if (array_key_exists('HTTP_USER_AGENT',$_SERVER) && strstr($_SERVER['HTTP_USER_A
<?=_("Keysize:")?> <keygen name="SPKAC" challenge="<? $_SESSION['spkac_hash']=make_hash(); echo $_SESSION['spkac_hash']; ?>">
<input type="submit" name="submit" value="<?=_("Create Certificate Request")?>">
- <input type="hidden" name="oldid" value="<?=$id?>">
+ <input type="hidden" name="oldid" value="<?=intval($id)?>">
</form>
</p>
<? }