You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2022/05/26 17:14:35 UTC
svn commit: r1901297 - /spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DecodeShortURLs.pm
Author: gbechis
Date: Thu May 26 17:14:35 2022
New Revision: 1901297
URL: http://svn.apache.org/viewvc?rev=1901297&view=rev
Log:
fix cache where CamelCase configuration options are used
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DecodeShortURLs.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DecodeShortURLs.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DecodeShortURLs.pm?rev=1901297&r1=1901296&r2=1901297&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DecodeShortURLs.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DecodeShortURLs.pm Thu May 26 17:14:35 2022
@@ -531,7 +531,7 @@ sub initialise_url_shortener_cache {
## MySQL/MariaDB
##
elsif (lc $conf->{url_shortener_cache_type} eq 'dbi'
- && $conf->{url_shortener_cache_dsn} =~ /^dbi:(?:mysql|MariaDB)/)
+ && $conf->{url_shortener_cache_dsn} =~ /^dbi:(?:mysql|MariaDB)/i)
{
eval {
local $SIG{'__DIE__'};
@@ -568,7 +568,7 @@ sub initialise_url_shortener_cache {
## PostgreSQL
##
elsif (lc $conf->{url_shortener_cache_type} eq 'dbi'
- && $conf->{url_shortener_cache_dsn} =~ /^dbi:Pg/)
+ && $conf->{url_shortener_cache_dsn} =~ /^dbi:Pg/i)
{
eval {
local $SIG{'__DIE__'};