Handle %u in query filter
authorJamie Cameron <jcameron@webmin.com>
Mon, 2 Jun 2008 17:57:52 +0000 (17:57 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 2 Jun 2008 17:57:52 +0000 (17:57 +0000)
postfix/postfix-lib.pl

index 48943d1..524d8ed 100644 (file)
@@ -1174,7 +1174,7 @@ local ($conf) = @_;
 local ($filter, $name_attr) = @_;
 if ($conf->{'query_filter'}) {
        $filter = $conf->{'query_filter'};
-       $conf->{'query_filter'} =~ /([a-z0-9]+)=\%s/i ||
+       $conf->{'query_filter'} =~ /([a-z0-9]+)=\%[su]/i ||
                &error("Could not get attribute from ".
                       $conf->{'query_filter'});
        $name_attr = $1;