summaryrefslogtreecommitdiff
path: root/pages/gpg
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-05-01 01:54:51 +0200
committerMichael Tänzer <neo@nhng.de>2014-05-01 02:11:08 +0200
commit0dfce0319110924a27d013a37ed179d33e837f0c (patch)
treeaa1a79f1a095d166589e5484686d80260203bd1e /pages/gpg
parent5cae905afb7b9075cf3f2a7287908f937551d2b7 (diff)
downloadcacert-devel-0dfce0319110924a27d013a37ed179d33e837f0c.tar.gz
cacert-devel-0dfce0319110924a27d013a37ed179d33e837f0c.tar.xz
cacert-devel-0dfce0319110924a27d013a37ed179d33e837f0c.zip
bug 1138: $verified is a string that is directly filled with data from the
translation system => do not intval() Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages/gpg')
-rw-r--r--pages/gpg/2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/gpg/2.php b/pages/gpg/2.php
index 9b3d4f4..84e11d2 100644
--- a/pages/gpg/2.php
+++ b/pages/gpg/2.php
@@ -43,6 +43,7 @@
<? } else {
while($row = mysql_fetch_assoc($res))
{
+ $verified = '';
if($row['timeleft'] > 0)
$verified = _("Valid");
if($row['timeleft'] < 0)
@@ -52,7 +53,7 @@
?>
<tr>
<? if($verified == _("Valid")) { ?>
- <td class="DataTD"><?=intval($verified)?></td>
+ <td class="DataTD"><?=$verified?></td>
<td class="DataTD"><a href="gpg.php?id=3&amp;cert=<?=intval($row['id'])?>"><?=sanitizeHTML($row['email'])?></a></td>
<? } else if($verified == _("Pending")) { ?>
<td class="DataTD"><?=$verified?></td>