From ff3de29241d874e93c1ecd35ca49b3814be809ac Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 18 Aug 2009 20:52:37 +0000 Subject: [PATCH] vacation.pl: - fix typo (?) in query: "goto like %" should most probably be "goto like ?" (placeholder) (if this was not a typo, the whole "AND ..." would be superfluous) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@706 a1433add-5e2c-0410-b055-b7f2511e0802 --- VIRTUAL_VACATION/vacation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 06cc6008..7d215e86 100644 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -327,7 +327,7 @@ sub find_real_address { $logger->debug("Found '\$email'\ has vacation active"); } else { $logger->debug("Looking for alias records that \'$email\' resolves to with vacation turned on"); - $query = qq{SELECT goto FROM alias WHERE address=? AND (goto LIKE ? OR goto LIKE % OR goto LIKE ?)}; + $query = qq{SELECT goto FROM alias WHERE address=? AND (goto LIKE ? OR goto LIKE ? OR goto LIKE ?)}; $stm = $dbh->prepare($query) or panic_prepare($query); $stm->execute($email,"$email,%","%,$email","%,$email,%") or panic_execute($query,"address='$email'"); $rv = $stm->rows;