Skip to content

Commit

Permalink
Merge pull request #1517 from pi-hole/fix/teleporter_hostnames
Browse files Browse the repository at this point in the history
Fix teleporter bug on hosts with . in their names
  • Loading branch information
DL6ER authored Jul 21, 2020
2 parents 3a68efc + 8672c49 commit b8b8e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pi-hole/php/teleporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ function process_file($contents)
}
else
{
$hostname = gethostname() ? gethostname()."-" : "";
$hostname = gethostname() ? str_replace(".", "_", gethostname())."-" : "";
$tarname = "pi-hole-".$hostname."teleporter_".date("Y-m-d_H-i-s").".tar";
$filename = $tarname.".gz";
$archive_file_name = sys_get_temp_dir() ."/". $tarname;
Expand Down

0 comments on commit b8b8e33

Please sign in to comment.