ENIGMA2: fix XML recognition for old WebIf versions

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4459 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2013-12-25 22:54:56 +00:00
parent c78235bfe1
commit ee3e334730

View File

@ -26,7 +26,7 @@
# #
# Version: 1.2.0 # Version: 1.2.0
# #
# Version History: # Major Version History:
# - 1.2.0 - 2013-12-21 # - 1.2.0 - 2013-12-21
# -- Add bouquet support e.g. for named channels # -- Add bouquet support e.g. for named channels
# #
@ -34,9 +34,6 @@
# -- Improved logging & debugging # -- Improved logging & debugging
# -- added default attributes for webCmd and devStateIcon # -- added default attributes for webCmd and devStateIcon
# #
# - 1.0.1 - 2013-12-15
# -- Bugfix release
#
# - 1.0.0 - 2013-09-23 # - 1.0.0 - 2013-09-23
# -- First release # -- First release
# #
@ -1627,7 +1624,7 @@ sub ENIGMA2_SendCommand($$;$) {
} }
if ( $response ne "" ) { if ( $response ne "" ) {
if ( $response =~ /^<\?xml/ ) { if ( $response =~ /^<\?xml/ && $response !~ /<\/html>/ ) {
if ( !defined($cmd) || $cmd eq "" ) { if ( !defined($cmd) || $cmd eq "" ) {
Log3 $name, 5, "ENIGMA2 $name: RES $service\n" . $response; Log3 $name, 5, "ENIGMA2 $name: RES $service\n" . $response;
} }