Skip to content

Commit 0092b51

Browse files
authored
Merge pull request #172 from /issues/171
security-package/issues/171: Default(pre-filled) value should be added to the "Policy" in Admin Panel for Security.txt settings
2 parents 8aad7b0 + e3fdc9b commit 0092b51

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

Securitytxt/etc/adminhtml/system.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
showInWebsite="1" showInStore="0">
8686
<label>Policy</label>
8787
<validate>validate-url validate-no-html-tags</validate>
88-
<comment>Example: https://example.com/security-policy.html</comment>
8988
<backend_model>Magento\Securitytxt\Model\Config\Backend\SecureUrl</backend_model>
9089
</field>
9190
<field id="signature_text" translate="label comment" type="textarea" sortOrder="80" showInDefault="1"

Securitytxt/etc/config.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
10+
<default>
11+
<magento_securitytxt_securitytxt>
12+
<other_information>
13+
<policy>https://magento.com/security</policy>
14+
</other_information>
15+
</magento_securitytxt_securitytxt>
16+
</default>
17+
</config>

Securitytxt/i18n/en_US.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ Preferred-Languages,Preferred-Languages
2525
Hiring,Hiring
2626
"Example: https://example.com/jobs.html","Example: https://example.com/jobs.html"
2727
Policy,Policy
28-
"Example: https://example.com/security-policy.html","Example: https://example.com/security-policy.html"
2928
Signature,Signature
3029
"Read instructions on how to generate signature","Read instructions on how to generate signature"

0 commit comments

Comments
 (0)