summaryrefslogtreecommitdiff
path: root/pages/account/43.php
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-02-27 00:32:07 +0100
committerINOPIAE <inopiae@cacert.org>2013-03-05 21:57:26 +0100
commit90bdd8cbe3eb660d3887337919173ce730b344fb (patch)
tree224a70af11e980738a6b6cc7c28fd80a857d1d4d /pages/account/43.php
parent17bb794a794a6ae48e9df5fb0a05a4b7cbf03f83 (diff)
downloadcacert-devel-90bdd8cbe3eb660d3887337919173ce730b344fb.tar.gz
cacert-devel-90bdd8cbe3eb660d3887337919173ce730b344fb.tar.xz
cacert-devel-90bdd8cbe3eb660d3887337919173ce730b344fb.zip
bug 1136: fixed references $id and $userid
Diffstat (limited to 'pages/account/43.php')
-rw-r--r--pages/account/43.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/pages/account/43.php b/pages/account/43.php
index 695e035..608f66b 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -98,8 +98,8 @@ include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
if(intval($_REQUEST['userid']) > 0)
{
- $id = intval($_REQUEST['userid']);
- $query = "select * from `users` where `id`='$id' and `users`.`deleted`=0";
+ $userid = intval($_REQUEST['userid']);
+ $query = "select * from `users` where `users`.`id`='$userid' and `users`.`deleted`=0";
$res = mysql_query($query);
if(mysql_num_rows($res) <= 0)
{
@@ -133,7 +133,7 @@ include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
<td class="DataTD"><?=_("Last Name")?>:</td>
<td class="DataTD"> <input type="hidden" name="oldid" value="43">
<input type="hidden" name="action" value="updatedob">
- <input type="hidden" name="userid" value="<?=intval($id)?>">
+ <input type="hidden" name="userid" value="<?=intval($userid)?>">
<input type="text" name="lname" value="<?=sanitizeHTML($row['lname'])?>"></td>
</tr>
<tr>
@@ -784,7 +784,8 @@ include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
<td colspan="6" class="title">
<form method="post" action="account.php" onSubmit="if(!confirm('<?=_("Are you sure you want to revoke all private certificates?")?>')) return false;">
<input type="hidden" name="action" value="revokecert">
- <input type="hidden" name="oldid" value="43">
+ <input type="hidden" name="oldid" value="<?=intval($id)?>">
+ <input type="hidden" name="userid" value="<?=intval($userid)?>">
<input type="submit" value="<?=_('revoke certificates')?>">
</form>
</td>