path: root/lib/VNDB/Handler/
diff options
authorYorhel <>2014-12-01 17:25:10 +0100
committerYorhel <>2014-12-01 17:25:10 +0100
commit0d191b5cd8c79eef3cef63c40ded96506a40382a (patch)
tree8feeb96f65f9a399adf8534b0661898bce9a986f /lib/VNDB/Handler/
parent00cd3dbfa11a4556cf32cd3790f043737b226506 (diff)
Don't use inline script tag to pass pref_code to JS
This also simplifies the code a bit, as the value of the preference data was never used so doesn't need to be included now. Primary reason for this change is to work towards disabling inline JS with a CSP header. There's still more stuff to fix before the CSP header can be applied, though.
Diffstat (limited to 'lib/VNDB/Handler/')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/ b/lib/VNDB/Handler/
index f714b93e..7af01048 100644
--- a/lib/VNDB/Handler/
+++ b/lib/VNDB/Handler/
@@ -100,7 +100,7 @@ sub list {
end 'form';
$self->htmlBrowseVN($list, $f, $np, "/v/$char?q=$quri;fil=$f->{fil}", $f->{fil} =~ /tag_inc-/);
- $self->htmlFooter(prefs => ['filter_vn']);
+ $self->htmlFooter(pref_code => 1);