Bernd Wurst commited on 2024-04-25 18:20:26
Zeige 2 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.
| ... | ... |
@@ -232,7 +232,7 @@ function verify_input_ipv6($input) |
| 232 | 232 |
|
| 233 | 233 |
function verify_input_recorddata($input) |
| 234 | 234 |
{
|
| 235 |
- if (strstr($input, "\\") || strstr($input, '"')) {
|
|
| 235 |
+ if (is_string($input) && (strstr($input, "\\") || strstr($input, '"'))) {
|
|
| 236 | 236 |
system_failure("Ungültige Zeichen");
|
| 237 | 237 |
} |
| 238 | 238 |
} |
| ... | ... |
@@ -217,7 +217,7 @@ function warn_autorecord_collission($hostname, $domain, $type, $data) |
| 217 | 217 |
{
|
| 218 | 218 |
$autorecords = get_domain_auto_records($domain); |
| 219 | 219 |
foreach ($autorecords as $ar) {
|
| 220 |
- if (!str_starts_with($data, "v=spf1") && $hostname == null) {
|
|
| 220 |
+ if (is_string($data) && !str_starts_with($data, "v=spf1") && $hostname == null) {
|
|
| 221 | 221 |
// Spezialfall SPF-Record |
| 222 | 222 |
continue; |
| 223 | 223 |
} |
| 224 | 224 |