Skip to content

Commit

Permalink
nutze filter_ssh_key nur wenn auch ein ssh-key da ist
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wurst committed Aug 24, 2024
1 parent 1721d2c commit 18ff9a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/dns/include/dnsinclude.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ function edit_dyndns_account($id, $handle, $password_http, $sshkey)
$id = (int) $id;
$oldaccount = get_dyndns_account($id);
$handle = verify_input_identifier($handle);
$sshkey = filter_ssh_key($sshkey);
if (trim($sshkey) == '') {
$sshkey = null;
} else {
$sshkey = filter_ssh_key($sshkey);
}

$args = [":handle" => $handle, ":sshkey" => $sshkey, ":id" => $id];
Expand Down

0 comments on commit 18ff9a5

Please sign in to comment.