Skip to content

Commit 03ee79b

Browse files
committed
move X-UA-Compatibility to header sent only to IE
1 parent 54e85be commit 03ee79b

18 files changed

+18
-60
lines changed

puppet_manifests/ilios.pp

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
require => Package["apache2"],
6565
}
6666

67+
exec {"add-mod-headers":
68+
command => "/usr/sbin/a2enmod headers",
69+
notify => Service["apache2"],
70+
require => Package["apache2"],
71+
}
72+
6773
exec {"create-db":
6874
cwd => "${repodir}/database/install",
6975
unless => "/usr/bin/sudo /bin/ls /var/lib/mysql/${dbname}/mesh_concept_x_term.MYI",

tests/cucumber/puppet_manifests/ilios.pp

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
require => Package["apache2"],
6565
}
6666

67+
exec {"add-mod-headers":
68+
command => "/usr/sbin/a2enmod headers",
69+
notify => Service["apache2"],
70+
require => Package["apache2"],
71+
}
72+
6773
exec {"create-db":
6874
cwd => "/var/ilios_install/install",
6975
unless => "/usr/bin/sudo /bin/ls /var/lib/mysql/${dbname}/mesh_concept_x_term.MYI",

web/.htaccess

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Options +FollowSymLinks
22

3+
# Get rid of Compatibility View button in IE 10 and below
4+
<IfModule mod_headers.c>
5+
BrowserMatch MSIE ie
6+
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
7+
</IfModule>
8+
39
#
410
# redirect all request to HTTPS
511
#

web/application/views/common/forbidden.php

-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
<head>
2020
<meta charset="utf-8">
2121

22-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
23-
More info: h5bp.com/i/378 -->
24-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
25-
2622
<title><?php echo $forbidden_warning_text; ?></title>
2723
<meta name="description" content="">
2824

web/application/views/course/course_manager.php

-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
<head>
1919
<meta charset="utf-8">
2020

21-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
22-
More info: h5bp.com/i/378 -->
23-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
24-
2521
<title><?php echo $title_bar_string; ?></title>
2622
<meta name="description" content="">
2723

web/application/views/curriculum_inventory/index.php

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
<head>
2323
<meta charset="utf-8">
2424

25-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
26-
More info: h5bp.com/i/378 -->
27-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
28-
2925
<title><?php echo $this->languagemap->t('curriculum_inventory.title_bar', $lang); ?></title>
3026
<meta name="description" content="">
3127

web/application/views/group/group_manager.php

-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
<head>
1616
<meta charset="utf-8">
1717

18-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
19-
More info: h5bp.com/i/378 -->
20-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
21-
2218
<title><?php echo $title_bar_string; ?></title>
2319
<meta name="description" content="">
2420

web/application/views/home/educator_calendar_view.php

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
<head>
2323
<meta charset="utf-8">
2424

25-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
26-
More info: h5bp.com/i/378 -->
27-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
28-
2925
<title><?php echo $title_bar_string; ?></title>
3026
<meta name="description" content="">
3127

web/application/views/home/educator_dashboard_view.php

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
<head>
2424
<meta charset="utf-8">
2525

26-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
27-
More info: h5bp.com/i/378 -->
28-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
29-
3026
<title><?php echo $title_bar_string; ?></title>
3127
<meta name="description" content="">
3228

web/application/views/home/student_calendar_view.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
<head>
2222
<meta charset="utf-8">
2323

24-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
25-
More info: h5bp.com/i/378 -->
26-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
27-
2824
<title><?php echo $title_bar_string; ?></title>
2925
<meta name="description" content="">
3026

web/application/views/home/student_dashboard_view.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
<head>
2222
<meta charset="utf-8">
2323

24-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
25-
More info: h5bp.com/i/378 -->
26-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
27-
2824
<title><?php echo $title_bar_string; ?></title>
2925
<meta name="description" content="">
3026

web/application/views/instructor/instructor_group_manager.php

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
<head>
1818
<meta charset="utf-8">
1919

20-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
21-
More info: h5bp.com/i/378 -->
22-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
23-
2420
<title><?php echo $title_bar_string; ?></title>
2521
<meta name="description" content="">
2622

web/application/views/login/login.php

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
<head>
2121
<meta charset="utf-8">
2222

23-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
24-
More info: h5bp.com/i/378 -->
25-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
26-
2723
<title><?php echo $login_title; ?></title>
2824
<meta name="description" content="">
2925

web/application/views/login/logout.php

-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
<head>
2727
<meta charset="utf-8">
2828

29-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
30-
More info: h5bp.com/i/378 -->
31-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
32-
3329
<title>Ilios Logout Stepping Stone</title>
3430
<meta name="description" content="">
3531

web/application/views/management/management_console.php

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
<head>
2121
<meta charset="utf-8">
2222

23-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
24-
More info: h5bp.com/i/378 -->
25-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
26-
2723
<title><?php echo $title_bar_string; ?></title>
2824
<meta name="description" content="">
2925

web/application/views/offering/offering_manager.php

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
<head>
2222
<meta charset="utf-8">
2323

24-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
25-
More info: h5bp.com/i/378 -->
26-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
27-
2824
<title><?php echo $title_bar_string; ?></title>
2925
<meta name="description" content="">
3026

web/application/views/program/program_manager.php

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
<head>
1818
<meta charset="utf-8">
1919

20-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
21-
More info: h5bp.com/i/378 -->
22-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
23-
2420
<title><?php echo $title_bar_string; ?></title>
2521
<meta name="description" content="">
2622

web/default.index.php

-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
<head>
1515
<meta charset="utf-8">
1616

17-
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
18-
More info: h5bp.com/i/378 -->
19-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
20-
2117
<title>Ilios</title>
2218
<meta name="description" content="">
2319

0 commit comments

Comments
 (0)