Fixed critical escaping bug in pagination plugin and made this a hard dependency
diff --git a/lib/Korap/Plugin/KorapSearch.pm b/lib/Korap/Plugin/KorapSearch.pm
index 89faeff..9950eec 100644
--- a/lib/Korap/Plugin/KorapSearch.pm
+++ b/lib/Korap/Plugin/KorapSearch.pm
@@ -165,7 +165,7 @@
};
if ($json->{totalResults} > -1) {
- $c->app->log->warn('Set total result from cache');
+ $c->app->log->warn('Cache total result');
$c->stash('search.totalResults' => $json->{totalResults});
$c->chi->set('total-' . $cache_url => $json->{totalResults}, '30min');
};
diff --git a/lib/Korap/Search.pm b/lib/Korap/Search.pm
index d3716ab..5918fd9 100644
--- a/lib/Korap/Search.pm
+++ b/lib/Korap/Search.pm
@@ -19,7 +19,7 @@
my $url = Mojo::URL->new($api)->path('search');
$url->query({
- q => scalar $c->param('q') // '',
+ q => scalar $c->param('q') // '',
ql => scalar $c->param('ql') // 'poliqarp'
});