From 0d230706fcbea0cbc3664348470dba684850c55f Mon Sep 17 00:00:00 2001 From: Wytze van der Raay Date: Wed, 15 Jan 2014 15:50:40 +0000 Subject: [PATCH] Fix for https://bugs.cacert.org/view.php?id=1195 "Take out change ability on pages/account/6.php" --- includes/account.php | 18 ------------------ pages/account/5.php | 2 +- pages/account/6.php | 22 ++-------------------- 3 files changed, 3 insertions(+), 39 deletions(-) diff --git a/includes/account.php b/includes/account.php index 36793f0..5be932b 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1189,24 +1189,6 @@ exit; } - - if($oldid == 6 && $_REQUEST['certid'] != "") - { - if(trim($_REQUEST['description']) != ""){ - $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description']))); - }else{ - $description= ""; - } - - if(trim($_REQUEST['disablelogin']) == "1"){ - $disablelogin = 1; - }else{ - $disablelogin = 0; - } - - mysql_query("update `emailcerts` set `disablelogin`='$disablelogin', `description`='$description' where `id`='".$_REQUEST['certid']."' and `memid`='".$_SESSION['profile']['id']."'"); - } - if($oldid == 13 && $process != "" && $showdetails!="") { csrf_check("perschange"); diff --git a/pages/account/5.php b/pages/account/5.php index 44763e2..934ca0c 100644 --- a/pages/account/5.php +++ b/pages/account/5.php @@ -91,7 +91,7 @@ - /> + /> diff --git a/pages/account/6.php b/pages/account/6.php index 0054b7a..8455499 100644 --- a/pages/account/6.php +++ b/pages/account/6.php @@ -115,7 +115,6 @@ if (array_key_exists('format', $_REQUEST)) { echo "
$cert
"; ?> -
@@ -132,16 +131,6 @@ if (array_key_exists('format', $_REQUEST)) { if($row['revoked'] == 0) $row['revoke'] = _("Not Revoked"); ?> - - - - - - - - - - @@ -165,21 +154,14 @@ if (array_key_exists('format', $_REQUEST)) { - - - - +
 
- /> + />
">
- - -
-