From d5e33d86fb4be8f91a06bc9a2c1c6a3b47aa7dea Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sun, 18 Apr 2021 14:21:16 +0000 Subject: [PATCH] configDB: fix a problem with case sensitivity git-svn-id: https://svn.fhem.de/fhem/trunk@24269 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 2cab72f27..0255c71ca 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -156,6 +156,8 @@ # 2020-07-02 - changed code cleanup after last changes (remove debug code) # add "configdb attr ?" to show known attributes # +# 2021-04-17 - bugfix problem in File.* commands regarding case sensitivity +# ############################################################################## =cut @@ -378,7 +380,9 @@ sub cfgDB_FileRead { Log3(undef, 4, "configDB reading file: $filename"); my ($err, @ret, $counter); $fhem_dbh = _cfgDB_Connect unless $fhem_dbh; - my $sth = $fhem_dbh->prepare( "SELECT content FROM fhemb64filesave WHERE filename LIKE '$filename'" ); + my $read_cmd = "SELECT content FROM fhemb64filesave WHERE filename = '$filename'"; +# my $sth = $fhem_dbh->prepare( "SELECT content FROM fhemb64filesave WHERE filename LIKE '$filename'" ); + my $sth = $fhem_dbh->prepare( $read_cmd ); $sth->execute(); my $blobContent = $sth->fetchrow_array(); $sth->finish();