Skip to content

Commit

Permalink
warnings vermeiden
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wurst committed Apr 25, 2024
1 parent a49d0dd commit fdf6cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function verify_input_ipv6($input)

function verify_input_recorddata($input)
{
if (strstr($input, "\\") || strstr($input, '"')) {
if (is_string($input) && (strstr($input, "\\") || strstr($input, '"'))) {
system_failure("Ungültige Zeichen");
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/dns/include/dnsinclude.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function warn_autorecord_collission($hostname, $domain, $type, $data)
{
$autorecords = get_domain_auto_records($domain);
foreach ($autorecords as $ar) {
if (!str_starts_with($data, "v=spf1") && $hostname == null) {
if (is_string($data) && !str_starts_with($data, "v=spf1") && $hostname == null) {
// Spezialfall SPF-Record
continue;
}
Expand Down

0 comments on commit fdf6cce

Please sign in to comment.