summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2012-11-21 00:28:42 +0100
committerINOPIAE <inopiae@cacert.org>2012-11-21 00:28:42 +0100
commitda87734b7884d1dee5a7a25efeabe1055de9e7b2 (patch)
treebdfe373dceb15eb890ba467fbace2ae27296270a
parent1f5a3718351252313448a46a8d8bf79df934881d (diff)
downloadcacert-devel-da87734b7884d1dee5a7a25efeabe1055de9e7b2.tar.gz
cacert-devel-da87734b7884d1dee5a7a25efeabe1055de9e7b2.tar.xz
cacert-devel-da87734b7884d1dee5a7a25efeabe1055de9e7b2.zip
bug 782: changed insert sql (deleted intval) on account.php, adjustment text area
-rw-r--r--includes/account.php14
-rw-r--r--pages/account/5.php4
2 files changed, 9 insertions, 9 deletions
diff --git a/includes/account.php b/includes/account.php
index 209dc47..0b7bf85 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -329,7 +329,7 @@
`codesign`='".intval($_SESSION['_config']['codesign'])."',
`disablelogin`='".($_SESSION['_config']['disablelogin']?1:0)."',
`rootcert`='".intval($_SESSION['_config']['rootcert'])."',
- `description`='".intval($_SESSION['_config']['description'])."'";
+ `description`='".$_SESSION['_config']['description']."'";
mysql_query($query);
$emailid = mysql_insert_id();
if(is_array($addys))
@@ -429,7 +429,7 @@
`subject`='".mysql_real_escape_string($csrsubject)."',
`codesign`='".$_SESSION['_config']['codesign']."',
`rootcert`='".$_SESSION['_config']['rootcert']."',
- `description`='".intval($_SESSION['_config']['description'])."'";
+ `description`='".$_SESSION['_config']['description']."'";
mysql_query($query);
$emailid = mysql_insert_id();
if(is_array($addys))
@@ -769,14 +769,14 @@
`domid`='".mysql_real_escape_string($_SESSION['_config']['rowid']['0'])."',
`created`=NOW(),`subject`='".mysql_real_escape_string($subject)."',
`rootcert`='".mysql_real_escape_string($_SESSION['_config']['rootcert'])."',
- `description`='".intval($_SESSION['_config']['description'])."'";
+ `description`='".$_SESSION['_config']['description']."'";
} elseif(array_key_exists('0',$_SESSION['_config']['altid']) && $_SESSION['_config']['altid']['0'] > 0) {
$query = "insert into `domaincerts` set
`CN`='".mysql_real_escape_string($_SESSION['_config']['altrows']['0'])."',
`domid`='".mysql_real_escape_string($_SESSION['_config']['altid']['0'])."',
`created`=NOW(),`subject`='".mysql_real_escape_string($subject)."',
`rootcert`='".mysql_real_escape_string($_SESSION['_config']['rootcert'])."',
- `description`='".intval($_SESSION['_config']['description'])."'";
+ `description`='".$_SESSION['_config']['description']."'";
} else {
showheader(_("My CAcert.org Account!"));
echo _("Domain not verified.");
@@ -1495,7 +1495,7 @@
`created`=FROM_UNIXTIME(UNIX_TIMESTAMP()),
`codesign`='".$_SESSION['_config']['codesign']."',
`rootcert`='".$_SESSION['_config']['rootcert']."',
- `description`='".intval($_SESSION['_config']['description'])."'";
+ `description`='".$_SESSION['_config']['description']."'";
mysql_query($query);
$emailid = mysql_insert_id();
@@ -1586,7 +1586,7 @@
`subject`='$csrsubject',
`codesign`='".$_SESSION['_config']['codesign']."',
`rootcert`='".$_SESSION['_config']['rootcert']."',
- `description`='".intval($_SESSION['_config']['description'])."'";
+ `description`='".$_SESSION['_config']['description']."'";
mysql_query($query);
$emailid = mysql_insert_id();
@@ -1913,7 +1913,7 @@
`subject`='$csrsubject',
`rootcert`='".$_SESSION['_config']['rootcert']."',
`type`='$type',
- `description`='".intval($_SESSION['_config']['description'])."'";
+ `description`='".$_SESSION['_config']['description']."'";
}
mysql_query($query);
$CSRid = mysql_insert_id();
diff --git a/pages/account/5.php b/pages/account/5.php
index 52266ec..b2c9609 100644
--- a/pages/account/5.php
+++ b/pages/account/5.php
@@ -94,7 +94,7 @@
<input type="checkbox" name="disablelogin_<?=$row['id']?>" value="1" <?=$row['disablelogin']?"":"checked='checked'"?>/>
<input type="hidden" name="cert_<?=$row['id']?>" value="1"/>
</td>
- <td class="DataTD"><textarea name="description[]" cols="80" rows="5"></textarea><?=$row['description']?></textarea></td>
+ <td class="DataTD"><textarea name="description[]" cols="50" rows="2"><?=$row['description']?></textarea></td>
<td class="DataTD">
<input type="submit" name="descriptionsave_<?=$row['id']?>" value="<?=_("Save comment")?>">
</td>
@@ -116,7 +116,7 @@
<td class="DataTD" colspan="5"><input type="submit" name="renew" value="<?=_("Renew")?>">&#160;&#160;&#160;&#160;
<input type="submit" name="revoke" value="<?=_("Revoke/Delete")?>"></td>
- <td class="DataTD" colspan="3"><input type="submit" name="change" value="<?=_("Change settings")?>"> </td>
+ <td class="DataTD" colspan="4"><input type="submit" name="change" value="<?=_("Change settings")?>"> </td>
</tr>
<? } ?>