[prev in list] [next in list] [prev in thread] [next in thread] 

List:       yaala
Subject:    [yaala] and yet another small fix
From:       qMax <qmax () mediasoft ! ru>
Date:       2004-11-02 12:25:18
Message-ID: 637514897.20041102182518 () mediasoft ! ru
[Download RAW message or body]

In the following selection:
"count BY to,mailer,from WHERE relay =~ '\[192.168.1.\d+\]',mailer == 'local',to != 'total'"

last operator "!=" gets converting into "ne" for filename twice!
I dunno where and why.

Here is fix.


-- 
 qMax
["Html_op_name.diff" (application/octet-stream)]

--- yaala.orig/lib/Yaala/Html.pm	Thu Dec 11 20:13:33 2003
+++ yaala/lib/Yaala/Html.pm	Tue Nov  2 18:18:13 2004
@@ -151,7 +151,8 @@
 		{
 			my ($key, $op, $val) = @$_;
 			$val =~ s/\W//g;
-			push (@where, join ('-', ($key, $sign_names{$op}, $val)));
+			$op = $sign_names{$op} if $sign_names{$op};
+			push (@where, join ('-', ($key, $op, $val)));
 		}
 
 		$filename .= '_WHERE_' . join ('_AND_', @where);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic