]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correct indentation
authorLukas Reschke <lukas@statuscode.ch>
Wed, 10 Oct 2012 17:01:32 +0000 (19:01 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Wed, 10 Oct 2012 17:01:32 +0000 (19:01 +0200)
lib/template.php

index fb81ec62519c8c9d0e5fdaaa02a61f3621dde898..1c529932a3018904313e843644f172d50d5c57c7 100644 (file)
@@ -159,9 +159,11 @@ class OC_Template{
                $this->vars['requestlifespan'] = OC_Util::$callLifespan;
                $parts = explode('/', $app); // fix translation when app is something like core/lostpassword
                $this->l10n = OC_L10N::get($parts[0]);
-                header('X-Frame-Options: Sameorigin');
-                header('X-XSS-Protection: 1; mode=block');
-                header('X-Content-Type-Options: nosniff');
+
+               // Some headers to enhance security
+               header('X-Frame-Options: Sameorigin');
+               header('X-XSS-Protection: 1; mode=block');
+               header('X-Content-Type-Options: nosniff');
 
                $this->findTemplate($name);
        }