]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
StrictTransportSecurity syntax fix
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 3 May 2015 20:50:44 +0000 (22:50 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 3 May 2015 20:50:44 +0000 (22:50 +0200)
plugins/StrictTransportSecurity/StrictTransportSecurityPlugin.php

index 682b10cad287f01bfbece89e61fd5f80b18d1ee5..91747f154344ff1a82d67ddb06b1493bf5346b27 100644 (file)
@@ -27,9 +27,7 @@
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) {
-    exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
 
 class StrictTransportSecurityPlugin extends Plugin
 {
@@ -45,7 +43,8 @@ class StrictTransportSecurityPlugin extends Plugin
     {
         $path = common_config('site', 'path');
         if(common_config('site', 'ssl') == 'always' && ($path == '/' || ! $path )) {
-            header('Strict-Transport-Security: max-age=' . $this->max_age . + ($this->includeSubDomains?'; includeSubDomains':''));
+            header('Strict-Transport-Security: max-age=' . $this->max_age
+                    . ($this->includeSubDomains ? '; includeSubDomains' : ''));
         }
     }