Ver Fonte

obExit actually doesn't get called for ajax calls

Jeremy D há 11 anos atrás
pai
commit
a086ed1887
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 0 3
      Sources/Subs.php
  2. 3 0
      index.php

+ 0 - 3
Sources/Subs.php

@@ -2592,9 +2592,6 @@ function obExit($header = null, $do_footer = null, $from_index = false, $from_fa
 	if ($do_footer === null)
 		$do_footer = $do_header;
 
-	// We should set our security headers now.
-	frameOptionsHeader();
-
 	// Has the template/header been done yet?
 	if ($do_header)
 	{

+ 3 - 0
index.php

@@ -178,6 +178,9 @@ function smf_main()
 		die("\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x21\xF9\x04\x01\x00\x00\x00\x00\x2C\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3B");
 	}
 
+	// We should set our security headers now.
+	frameOptionsHeader();
+
 	// Load the user's cookie (or set as guest) and load their settings.
 	loadUserSettings();