mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
SONOS: better recognition of wrong addresses
git-svn-id: https://svn.fhem.de/fhem/trunk@8436 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
115b139468
commit
b727b8d3f3
@ -7005,7 +7005,7 @@ sub SONOS_DownloadReplaceIfChanged($$) {
|
|||||||
SONOS_Log undef, 5, 'Call of SONOS_DownloadReplaceIfChanged("'.$url.'", "'.$dest.'")';
|
SONOS_Log undef, 5, 'Call of SONOS_DownloadReplaceIfChanged("'.$url.'", "'.$dest.'")';
|
||||||
|
|
||||||
# Be sure URL is absolute
|
# Be sure URL is absolute
|
||||||
return 0 if ($url =~ m/^\./i);
|
return 0 if ($url !~ m/^http:\/\//i);
|
||||||
|
|
||||||
# Reading new file
|
# Reading new file
|
||||||
my $newFile;
|
my $newFile;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user