bernd commited on 2010-08-02 13:35:32
Zeige 1 geänderte Dateien mit 3 Einfügungen und 1 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1768 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -147,12 +147,14 @@ function refresh_cert($id, $info, $cert, $key = NULL) |
147 | 147 |
$valid_from = mysql_real_escape_string($info['valid_from']); |
148 | 148 |
$valid_until = mysql_real_escape_string($info['valid_until']); |
149 | 149 |
|
150 |
+ $chain = maybe_null( get_chain($cert) ); |
|
151 |
+ |
|
150 | 152 |
$keyop = ''; |
151 | 153 |
if ($key) { |
152 | 154 |
openssl_pkey_export($key, $key); |
153 | 155 |
$keyop = ", `key`='".mysql_real_escape_string($key)."'"; |
154 | 156 |
} |
155 |
- db_query("UPDATE vhosts.certs SET cert='{$cert}'{$keyop}, valid_from='{$valid_from}', valid_until='{$valid_until}' WHERE id={$id} LIMIT 1"); |
|
157 |
+ db_query("UPDATE vhosts.certs SET cert='{$cert}'{$keyop}, valid_from='{$valid_from}', valid_until='{$valid_until}', chain={$chain} WHERE id={$id} LIMIT 1"); |
|
156 | 158 |
} |
157 | 159 |
|
158 | 160 |
|
159 | 161 |