Merge pull request #1334 from Umeaboy/patch-36
authorHannu Nyman <hannu.nyman@iki.fi>
Sat, 2 Sep 2017 17:15:29 +0000 (20:15 +0300)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2017 17:15:29 +0000 (20:15 +0300)
luci-app-adblock: Sync translations

applications/luci-app-firewall/po/it/firewall.po
modules/luci-base/luasrc/http.lua

index 33e8351..b42a507 100644 (file)
@@ -93,7 +93,7 @@ msgid "Do not rewrite"
 msgstr ""
 
 msgid "Drop invalid packets"
-msgstr "Attiva"
+msgstr "Scarta pacchetti invalidi"
 
 msgid "Enable"
 msgstr ""
index 8795dfc..9cc9857 100644 (file)
@@ -224,7 +224,15 @@ function write(content, src_err)
                                header("Cache-Control", "no-cache")
                                header("Expires", "0")
                        end
-
+                       if not context.headers["x-frame-options"] then
+                               header("X-Frame-Options", "SAMEORIGIN")
+                       end
+                       if not context.headers["x-xss-protection"] then
+                               header("X-XSS-Protection", "1; mode=block")
+                       end
+                       if not context.headers["x-content-type-options"] then
+                               header("X-Content-Type-Options", "nosniff")
+                       end
 
                        context.eoh = true
                        coroutine.yield(3)