Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit 9181c7a

Browse files
committed
Saves clickjacking security settings into a feature.
1 parent 31efce2 commit 9181c7a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

lib/modules/dosomething/dosomething_settings/dosomething_settings.info

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ features[user_permission][] = use text format markdown
2121
features[variable][] = l10n_update_import_mode
2222
features[variable][] = pathauto_file_pattern
2323
features[variable][] = pathauto_node_pattern
24-
mtime = 1428597800
24+
features[variable][] = seckit_clickjacking
25+
mtime = 1447359362

lib/modules/dosomething/dosomething_settings/dosomething_settings.strongarm.inc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,17 @@ function dosomething_settings_strongarm() {
3131
$strongarm->value = '';
3232
$export['pathauto_node_pattern'] = $strongarm;
3333

34+
$strongarm = new stdClass();
35+
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
36+
$strongarm->api_version = 1;
37+
$strongarm->name = 'seckit_clickjacking';
38+
$strongarm->value = array(
39+
'x_frame' => '1',
40+
'x_frame_allow_from' => '',
41+
'js_css_noscript' => 0,
42+
'noscript_message' => 'Sorry, you need to enable JavaScript to visit this website.',
43+
);
44+
$export['seckit_clickjacking'] = $strongarm;
45+
3446
return $export;
3547
}

0 commit comments

Comments
 (0)