diff options
author | INOPIAE <inopiae@cacert.org> | 2013-06-23 22:28:13 +0200 |
---|---|---|
committer | INOPIAE <inopiae@cacert.org> | 2013-06-23 22:28:13 +0200 |
commit | 4c282894a952d1fcd8f61c8fc6cd5ba502140100 (patch) | |
tree | 5eedb91ce923b08792a90e16642d260dffb9ff95 | |
parent | 389f8351b95126d3bafe560c2af6a426e68e7ba7 (diff) | |
download | cacert-devel-4c282894a952d1fcd8f61c8fc6cd5ba502140100.tar.gz cacert-devel-4c282894a952d1fcd8f61c8fc6cd5ba502140100.tar.xz cacert-devel-4c282894a952d1fcd8f61c8fc6cd5ba502140100.zip |
bug 782: removed previous echo, fixed update sql in account.php, added missing form tag in gpg/2.php
-rw-r--r-- | includes/account.php | 8 | ||||
-rw-r--r-- | pages/gpg/2.php | 1 |
2 files changed, 4 insertions, 5 deletions
diff --git a/includes/account.php b/includes/account.php index 79237e1..1a381b8 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1029,9 +1029,7 @@ { $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']."'"); + mysql_query("update `domaincerts` set `description`='$comment' where `id`='$cid'"); } } echo(_("Certificate settings have been changed.")."<br/>\n"); @@ -1827,7 +1825,7 @@ echo "update `domaincerts` set `description`='$comment' where `id`='$cid' and `m { $cid = intval(substr($id,14)); $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']."'"); + mysql_query("update `orgemailcerts` set `description`='$comment' where `id`='$cid'"); } } echo(_("Certificate settings have been changed.")."<br/>\n"); @@ -2183,7 +2181,7 @@ echo "update `domaincerts` set `description`='$comment' where `id`='$cid' and `m { $cid = intval(substr($id,14)); $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']."'"); + mysql_query("update `orgdomaincerts` set `description`='$comment' where `id`='$cid'"); } } echo(_("Certificate settings have been changed.")."<br/>\n"); diff --git a/pages/gpg/2.php b/pages/gpg/2.php index fe75a84..cc8a872 100644 --- a/pages/gpg/2.php +++ b/pages/gpg/2.php @@ -15,6 +15,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> +<form method="post" action="gpg.php"> <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper"> <tr> <td colspan="6" class="title"><?=_("OpenPGP Keys")?></td> |