2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

configDB: fix a problem with case sensitivity

git-svn-id: https://svn.fhem.de/fhem/trunk@24269 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2021-04-18 14:21:16 +00:00
parent 4e62a1cf1f
commit d5e33d86fb

View File

@ -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();