summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-06-23 22:01:35 +0200
committerINOPIAE <inopiae@cacert.org>2013-06-23 22:01:35 +0200
commit389f8351b95126d3bafe560c2af6a426e68e7ba7 (patch)
tree7f055adfd031fc519d6153f6165b6dfe7b9cc772
parenta93fac2bda18d11afaa09cbdd766a6492e61d35e (diff)
downloadcacert-devel-389f8351b95126d3bafe560c2af6a426e68e7ba7.tar.gz
cacert-devel-389f8351b95126d3bafe560c2af6a426e68e7ba7.tar.xz
cacert-devel-389f8351b95126d3bafe560c2af6a426e68e7ba7.zip
bug 782: added some echo for tracing
-rw-r--r--includes/account.php14
-rw-r--r--www/gpg.php6
2 files changed, 8 insertions, 12 deletions
diff --git a/includes/account.php b/includes/account.php
index 3039248..79237e1 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1029,6 +1029,8 @@
{
$cid = intval(substr($id,14));
$comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
+echo "cid:".$cid." comment:".$comment."++</br>";
+echo "update `domaincerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'</br>";
mysql_query("update `domaincerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
}
}
@@ -1824,10 +1826,8 @@
if(substr($id,0,14)=="check_comment_")
{
$cid = intval(substr($id,14));
- if(!empty($_REQUEST['check_comment_'.$cid])) {
- $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
- mysql_query("update `orgemailcerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
- }
+ $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
+ mysql_query("update `orgemailcerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
}
}
echo(_("Certificate settings have been changed.")."<br/>\n");
@@ -2182,10 +2182,8 @@
if(substr($id,0,14)=="check_comment_")
{
$cid = intval(substr($id,14));
- if(!empty($_REQUEST['check_comment_'.$cid])) {
- $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
- mysql_query("update `orgdomaincerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
- }
+ $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
+ mysql_query("update `orgdomaincerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
}
}
echo(_("Certificate settings have been changed.")."<br/>\n");
diff --git a/www/gpg.php b/www/gpg.php
index 9356aea..b7c9989 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -517,10 +517,8 @@ function verifyEmail($email)
if(substr($id,0,14)=="check_comment_")
{
$cid = intval(substr($id,14));
- if(!empty($_REQUEST['check_comment_'.$cid])) {
- $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
- mysql_query("update `gpg` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
- }
+ $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid])));
+ mysql_query("update `gpg` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'");
}
}
echo(_("Certificate settings have been changed.")."<br/>\n");