Bernd Wurst commited on 2024-08-24 19:21:10
Zeige 1 geänderte Dateien mit 2 Einfügungen und 1 Löschungen.
| ... | ... |
@@ -95,9 +95,10 @@ function edit_dyndns_account($id, $handle, $password_http, $sshkey) |
| 95 | 95 |
$id = (int) $id; |
| 96 | 96 |
$oldaccount = get_dyndns_account($id); |
| 97 | 97 |
$handle = verify_input_identifier($handle); |
| 98 |
- $sshkey = filter_ssh_key($sshkey); |
|
| 99 | 98 |
if (trim($sshkey) == '') {
|
| 100 | 99 |
$sshkey = null; |
| 100 |
+ } else {
|
|
| 101 |
+ $sshkey = filter_ssh_key($sshkey); |
|
| 101 | 102 |
} |
| 102 | 103 |
|
| 103 | 104 |
$args = [":handle" => $handle, ":sshkey" => $sshkey, ":id" => $id]; |
| 104 | 105 |