Check for "." within the TLD

This commit is contained in:
Squidly271
2025-10-03 00:39:42 -04:00
committed by GitHub
parent a530ff1098
commit 478ba605bc
+1 -1
View File
@@ -389,7 +389,7 @@ function anonymize_domain(&$text) {
$ident = @parse_ini_file('/boot/config/ident.cfg');
$domain = strtolower(is_array($ident) ? ($ident['LOCAL_TLD'] ?? ($ident['LOCAL_TLD'] ?? "local")) : "local");
}
if ($domain != "local") {
if (strpos($domain,".") !== false) {
$text = str_ireplace($domain,"removed_TLD",$text);
}
}