Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Blond Jérémie
fusiondirectory
Commits
f215a8ce
Commit
f215a8ce
authored
6 years ago
by
Côme Chilliet
Browse files
Options
Download
Patches
Plain Diff
feat(core) Add security HTTP headers
issue
#5842
parent
5edd2e32
dev
master
fusiondirectory-1.4
fusiondirectory-1.3.1
fusiondirectory-1.3
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
html/index.php
+5
-1
html/index.php
html/main.php
+4
-2
html/main.php
html/setup.php
+4
-2
html/setup.php
with
13 additions
and
5 deletions
+13
-5
html/index.php
+
5
−
1
View file @
f215a8ce
...
...
@@ -24,7 +24,11 @@ require_once ("../include/php_setup.inc");
require_once
(
"functions.inc"
);
require_once
(
"variables.inc"
);
require_once
(
"class_logging.inc"
);
header
(
"Content-type: text/html; charset=UTF-8"
);
/* Set headers */
header
(
'Content-type: text/html; charset=UTF-8'
);
header
(
'X-XSS-Protection: 1; mode=block'
);
header
(
'X-Content-Type-Options: nosniff'
);
/* Display the login page and exit() */
function
displayLogin
()
...
...
This diff is collapsed.
Click to expand it.
html/main.php
+
4
−
2
View file @
f215a8ce
...
...
@@ -27,8 +27,10 @@ require_once ("../include/php_setup.inc");
require_once
(
"functions.inc"
);
require_once
(
"variables.inc"
);
/* Set header */
header
(
"Content-type: text/html; charset=UTF-8"
);
/* Set headers */
header
(
'Content-type: text/html; charset=UTF-8'
);
header
(
'X-XSS-Protection: 1; mode=block'
);
header
(
'X-Content-Type-Options: nosniff'
);
/* Set the text domain as 'fusiondirectory' */
$domain
=
'fusiondirectory'
;
...
...
This diff is collapsed.
Click to expand it.
html/setup.php
+
4
−
2
View file @
f215a8ce
...
...
@@ -35,8 +35,10 @@ require_once("../setup/class_setupStepMigrate.inc");
require_once
(
"../setup/class_setupStepFinish.inc"
);
/* Set header */
header
(
"Content-type: text/html; charset=UTF-8"
);
/* Set headers */
header
(
'Content-type: text/html; charset=UTF-8'
);
header
(
'X-XSS-Protection: 1; mode=block'
);
header
(
'X-Content-Type-Options: nosniff'
);
/* Set cookie lifetime to one day (The parameter is in seconds ) */
session_set_cookie_params
(
24
*
60
*
60
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets