diff options
author | Yorhel <git@yorhel.nl> | 2014-12-01 17:25:10 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-12-01 17:25:10 +0100 |
commit | 0d191b5cd8c79eef3cef63c40ded96506a40382a (patch) | |
tree | 8feeb96f65f9a399adf8534b0661898bce9a986f /lib/VNDB/Handler/Tags.pm | |
parent | 00cd3dbfa11a4556cf32cd3790f043737b226506 (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/Tags.pm')
-rw-r--r-- | lib/VNDB/Handler/Tags.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm index 1b67fadc..c8cf362a 100644 --- a/lib/VNDB/Handler/Tags.pm +++ b/lib/VNDB/Handler/Tags.pm @@ -127,7 +127,7 @@ sub tagpage { $self->htmlBrowseVN($list, $f, $np, "/g$t->{id}?fil=$f->{fil};m=$f->{m}", 1) if @$list; } - $self->htmlFooter(prefs => ['filter_vn']); + $self->htmlFooter(pref_code => 1); } |