--- trunk/html/swish.cgi 2004/08/29 18:17:15 82
+++ trunk/html/swish.cgi 2004/08/29 18:26:58 83
@@ -16,6 +16,7 @@
my $desc = shift || return '';
$desc = substr($desc,0,$max_desc) if (length($desc) > $max_desc);
+ $desc = e($desc);
# test if $desc contains any of our query words
my @snips;
@@ -195,18 +196,6 @@
# default format for output
my $hit_fmt = "%s [%s]
\n";
- # output start of table
- print qq{
-
- };
- # html before and after each hit
- my $tr_pre = qq{
-
- };
- my $tr_post = qq{
- |
- };
-
if (@properties) {
$hit_fmt = x($config->{hit}) if (! param('no_properties'));
$params{properties} = \@properties;
@@ -243,11 +232,22 @@
}
my %path2title;
- use Data::Dumper;
foreach my $p (@{$config->{path2title}->{path}}) {
$path2title{$p->{dir}} = $p->{content};
}
+ # output start of table
+ print qq{
+
+ };
+ # html before and after each hit
+ my $tr_pre = qq{
+
+ };
+ my $tr_post = qq{
+ |
+ };
+
for(my $i=$pager->first; $i<=$pager->last; $i++) {
my $result = $results->NextResult;