57_CalDav.pm: protect privacy in Logfile

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18613 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2019-02-16 19:49:36 +00:00
parent 7df7adb7a2
commit 9f30cdc96c

View File

@ -7,6 +7,7 @@ use warnings;
use HttpUtils;
use XML::LibXML;
use Data::Dumper;
use English qw(-no_match_vars);
sub CalDav_Initialize($$)
{
@ -54,8 +55,10 @@ sub CalDav_Process($$$) {
next if ($u =~ /(inbox|outbox)\/$/);
my @a = split(/\//,$u);
my $t = "define $name$a[-1] Calendar ical url $url$a[-1]$options";
Log3 (3, "caldav", "Creating Calendar: $t");
fhem $t;
$t =~ /https?:\/\/([^^\/]*)/;
substr($t, $LAST_MATCH_START[1], $LAST_MATCH_END[1] - $LAST_MATCH_START[1], "...");
Log3 ("caldav",3,"Creating Calendar: $t");
}
}