Handle %u in query filter

This commit is contained in:
Jamie Cameron
2008-06-02 17:57:52 +00:00
parent 2777eb5cc1
commit 6795bcf730

View 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;