--- trunk/vhost/webpac2.cgi 2009/04/29 18:06:19 1177 +++ trunk/vhost/webpac2.cgi 2009/05/26 14:55:29 1191 @@ -209,7 +209,13 @@ $attr . '="' . $template . '"'; ; }; - $v =~ s{(\s*)(\S+)}{rewrite($1,$2)}ge; + if ( $op =~ m{\s} ) { + my $template = $op; + $template =~ s{Q}{$v}; + $v = $attr . '="' . $template . '"'; + } else { + $v =~ s{(\s*)(\S+)}{rewrite($1,$2)}ge; + } push @search, $v;