From 0d191b5cd8c79eef3cef63c40ded96506a40382a Mon Sep 17 00:00:00 2001 From: Yorhel Date: Mon, 1 Dec 2014 17:25:10 +0100 Subject: 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. --- lib/VNDB/Handler/VNBrowse.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/VNDB/Handler/VNBrowse.pm') diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm index f714b93e..7af01048 100644 --- a/lib/VNDB/Handler/VNBrowse.pm +++ b/lib/VNDB/Handler/VNBrowse.pm @@ -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); } -- cgit v1.2.3