From 391d6f03454d5f4d29e16aedef616f449d7258d9 Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 25 May 2006 14:02:15 +0000 Subject: [PATCH] Bug 343 - Fixed issue with monitor names in filters. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1993 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmfilter.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zmfilter.pl b/scripts/zmfilter.pl index da8961ded..35a0d43f5 100644 --- a/scripts/zmfilter.pl +++ b/scripts/zmfilter.pl @@ -250,7 +250,7 @@ sub getFilters my @value_list; if ( $filter_terms{$attr_name} ) { - if ( $filter_terms{$attr_name} =~ '/^Monitor/' ) + if ( $filter_terms{$attr_name} =~ /^Monitor/ ) { my ( $temp_attr_name ) = $filter_terms{$attr_name} =~ /^Monitor(.+)$/; $filter_sql .= "M.".$temp_attr_name; @@ -289,7 +289,7 @@ sub getFilters ( my $stripped_value = $value ) =~ s/^["\']+?(.+)["\']+?$/$1/; foreach my $temp_value ( split( '/["\'\s]*?,["\'\s]*?/', $stripped_value ) ) { - if ( $filter_terms{$attr_name} =~ '/^Monitor/' ) + if ( $filter_terms{$attr_name} =~ /^Monitor/ ) { $value = "'$temp_value'"; }