bug 1123: fixed merge conflicts on testserver
[cacert-devel.git] / www / gpg.php
index 267fabd..d0ba432 100644 (file)
@@ -286,6 +286,13 @@ function verifyEmail($email)
        {
                write_user_agreement(intval($_SESSION['profile']['id']), "CCA", "certificate creation", "", 1);
 
+               //set variable for comment
+               if(trim($_REQUEST['description']) == ""){
+                       $description= "";
+               }else{
+                       $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
+               }
+
                $query = "insert into `gpg` set `memid`='".intval($_SESSION['profile']['id'])."',
                                                `email`='".mysql_real_escape_string($lastvalidemail)."',
                                                `level`='1',