summaryrefslogtreecommitdiff
path: root/www/gpg.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/gpg.php')
-rw-r--r--www/gpg.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/www/gpg.php b/www/gpg.php
index 345b559..fcc0742 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -248,6 +248,12 @@ function verifyEmail($email)
$resulttable.="</tr>\n";
if($emailok) $multiple++;
+
+ if(trim($_REQUEST['description']) == ""){
+ $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
+ }else{
+ $description= "";
+ }
}
$resulttable.="</table>";
@@ -280,7 +286,8 @@ function verifyEmail($email)
`level`='1',
`expires`='".mysql_real_escape_string($expires)."',
`multiple`='".mysql_real_escape_string($multiple)."',
- `keyid`='".mysql_real_escape_string($keyid)."'";
+ `keyid`='".mysql_real_escape_string($keyid)."',
+ `description`='".mysql_real_escape_string($description)."'";
mysql_query($query);
$id = mysql_insert_id();