You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2022/05/05 17:31:13 UTC
svn commit: r1900595 - /spamassassin/trunk/t/decodeshorturl.t
Author: hege
Date: Thu May 5 17:31:13 2022
New Revision: 1900595
URL: http://svn.apache.org/viewvc?rev=1900595&view=rev
Log:
Fix: "my" variable $dbh masks earlier declaration in same scope
Modified:
spamassassin/trunk/t/decodeshorturl.t
Modified: spamassassin/trunk/t/decodeshorturl.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/decodeshorturl.t?rev=1900595&r1=1900594&r2=1900595&view=diff
==============================================================================
--- spamassassin/trunk/t/decodeshorturl.t (original)
+++ spamassassin/trunk/t/decodeshorturl.t Thu May 5 17:31:13 2022
@@ -92,8 +92,8 @@ is($row[0], 'http://spamassassin.apache.
sarun ("-t < data/spam/decodeshorturl/base2.eml", \&patterns_run_cb);
ok_all_patterns();
-my $dbh = DBI->connect("dbi:SQLite:dbname=$workdir/DecodeShortURLs.db","","");
-my @row = $dbh->selectrow_array("SELECT decoded_url FROM short_url_cache WHERE short_url = 'http://bit.ly/30yH6WK'");
+$dbh = DBI->connect("dbi:SQLite:dbname=$workdir/DecodeShortURLs.db","","");
+@row = $dbh->selectrow_array("SELECT decoded_url FROM short_url_cache WHERE short_url = 'http://bit.ly/30yH6WK'");
isnt($row[0], 'https://spamassassin.apache.org/');
}