Improved parameter checking
This commit is contained in:
parent
41bba82d32
commit
88afbe8b1d
1 changed files with 3 additions and 3 deletions
|
@ -16,8 +16,8 @@
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/ ?>
|
||||
<?
|
||||
$certid = intval($_SESSION['_config']['cert']);
|
||||
$query = "select * from `gpg` where `id`='$certid' and `memid`='".$_SESSION[profile][id]."'";
|
||||
$certid = intval($_REQUEST['cert']);
|
||||
$query = "select * from `gpg` where `id`='$certid' and `memid`='".intval($_SESSION['profile']['id'])."'";
|
||||
$res = mysql_query($query);
|
||||
if(mysql_num_rows($res) <= 0)
|
||||
{
|
||||
|
@ -29,5 +29,5 @@
|
|||
?>
|
||||
<h3><?=_("Below is your OpenPGP key")?></h3>
|
||||
<pre>
|
||||
<? readfile($row[crt]); ?>
|
||||
<? readfile($row['crt']); ?>
|
||||
</pre>
|
||||
|
|
Loading…
Reference in a new issue