New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Move the additional language strings in a separate file & fix postinstall #19449
Merged
Merged
Changes from 30 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
4cdc6f6
move the additional language strings in a seperate file
zero-24 24f6e25
some other fixes for the postinstall message ...
zero-24 f09e5f7
add language thanks @infograf768
zero-24 59de753
Update en-GB.plg_system_httpheader.ini
zero-24 b8fe484
Update customhttpheader.xml
zero-24 6af7b73
add migration for already installed plugin version by converting the …
zero-24 8fd5d22
Merge branch 'httpheader' of github.com:zero-24/joomla-cms into httph…
zero-24 e5f10c0
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 4e28bda
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 b205a2c
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 6712246
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 a4c2e46
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 7f6d14d
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 f820fb5
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 5f2ed28
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 763fcf5
merge conflicts
zero-24 ad0d124
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 c55fda7
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 dd0b71f
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 730c48a
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 a7565e5
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 501fd19
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 cad9942
rename from httpheader to httpheaders as there is already my plugin o…
zero-24 2cb28af
add missing files
zero-24 2e5174a
one missing change
zero-24 2252d5c
fixed missing change
zero-24 8ec17f2
handle disabled setting
zero-24 13f3cff
thanks @quy
zero-24 d06a965
postinstall message
zero-24 9cddfc5
postinstall message drop another break
zero-24 cd3904f
drop <p> tag
zero-24 97117ac
fix httpheaders plugin postinstall message action
zero-24 d7dfba1
implement redirect to the plugin edit page thanks @brianteeman
zero-24 0d60307
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 f3883f6
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 d392890
thanks @quy
zero-24 ad1ff56
thanks @quy
zero-24 b0a7784
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 4bd2ecf
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into httpheader
zero-24 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
administrator/components/com_admin/sql/updates/mysql/4.0.0-2017-10-10.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES | ||
(487, 'plg_system_httpheader', 'plugin', 'httpheader', 'system', 0, 0, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0); | ||
(487, 'plg_system_httpheaders', 'plugin', 'httpheaders', 'system', 0, 0, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0); | ||
|
||
INSERT INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) | ||
VALUES | ||
(NULL, 487, 'PLG_SYSTEM_HTTPHEADER_POSTINSTALL_INTRODUCTION_TITLE', 'PLG_SYSTEM_HTTPHEADER_POSTINSTALL_INTRODUCTION_BODY', 'PLG_SYSTEM_HTTPHEADER_POSTINSTALL_INTRODUCTION_ACTION', 'plg_system_httpheader', 1, 'action', 'site://plugins/system/httpheader/postinstall/introduction.php', 'httpheader_postinstall_action', 'site://plugins/system/httpheader/postinstall/introduction.php', 'httpheader_postinstall_condition', '4.0.0', 1); | ||
(700, 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_TITLE', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_BODY', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_ACTION', 'plg_system_httpheaders', 1, 'action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_condition', '4.0.0', 1); |
4 changes: 2 additions & 2 deletions
4
administrator/components/com_admin/sql/updates/postgresql/4.0.0-2017-10-10.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
INSERT INTO "#__extensions" ("extension_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "manifest_cache", "params", "custom_data", "system_data", "checked_out", "checked_out_time", "ordering", "state") VALUES | ||
(487, 'plg_system_httpheader', 'plugin', 'httpheader', 'system', 0, 0, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0); | ||
(487, 'plg_system_httpheaders', 'plugin', 'httpheaders', 'system', 0, 0, 1, 0, '', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0); | ||
|
||
INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") | ||
VALUES | ||
(NULL, 487, 'PLG_SYSTEM_HTTPHEADER_POSTINSTALL_INTRODUCTION_TITLE', 'PLG_SYSTEM_HTTPHEADER_POSTINSTALL_INTRODUCTION_BODY', 'PLG_SYSTEM_HTTPHEADER_POSTINSTALL_INTRODUCTION_ACTION', 'plg_system_httpheader', 1, 'action', 'site://plugins/system/httpheader/postinstall/introduction.php', 'httpheader_postinstall_action', 'site://plugins/system/httpheader/postinstall/introduction.php', 'httpheader_postinstall_condition', '4.0.0', 1); | ||
(700, 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_TITLE', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_BODY', 'PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_ACTION', 'plg_system_httpheaders', 1, 'action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_action', 'site://plugins/system/httpheaders/postinstall/introduction.php', 'httpheaders_postinstall_condition', '4.0.0', 1); |
30 changes: 0 additions & 30 deletions
30
administrator/language/en-GB/en-GB.plg_system_httpheader.sys.ini
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
administrator/language/en-GB/en-GB.plg_system_httpheaders.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
; Joomla! Project | ||
; Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved. | ||
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php | ||
; Note : All ini files need to be saved as UTF-8 | ||
|
||
PLG_SYSTEM_HTTPHEADERS="System - HTTPHeaders" | ||
PLG_SYSTEM_HTTPHEADERS_XML_DESCRIPTION="This Plugin can set some Security HTTP Headers" | ||
PLG_SYSTEM_HTTPHEADERS_ADDITIONAL_HEADER="Define additional HTTP Header" | ||
PLG_SYSTEM_HTTPHEADERS_ADDITIONAL_HEADER_DESC="Using this you can set also different values from the default ones and also additional headers when it is supported. The supported headers are: <br><ul><li>Strict-Transport-Security</li><li>Content-Security-Policy</li><li>Content-Security-Policy-Report-Only</li><li>X-Frame-Options</li><li>X-XSS-Protection</li><li>X-Content-Type-Options</li><li>Referrer-Policy</li><li>Expect-CT</li></ul>" | ||
PLG_SYSTEM_HTTPHEADERS_ADDITIONAL_HEADER_CLIENT="Client" | ||
PLG_SYSTEM_HTTPHEADERS_ADDITIONAL_HEADER_CLIENT_BOTH="Both" | ||
PLG_SYSTEM_HTTPHEADERS_ADDITIONAL_HEADER_KEY="HTTP Header" | ||
PLG_SYSTEM_HTTPHEADERS_ADDITIONAL_HEADER_VALUE="HTTP Header Value" | ||
PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_TITLE="HTTP Security Headers" | ||
PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_BODY="<p>Joomla! comes with a built-in plugin that handles http security headers. It helps to secure your site by setting the following headers with the default values:<br><ul><li><a href='https://scotthelme.co.uk/hardening-your-http-response-headers/#x-frame-options'>'X-Frame-Options: SAMEORIGIN'</a></li><li><a href='https://scotthelme.co.uk/hardening-your-http-response-headers/#x-xss-protection'>'X-XSS-Protection: 1; mode=block'</a></li><li><a href='https://scotthelme.co.uk/hardening-your-http-response-headers/#x-content-type-options'>'X-Content-Type-Options: nosniff'</a></li><li><a href='https://scotthelme.co.uk/a-new-security-header-referrer-policy/'>'Referrer-Policy: no-referrer-when-downgrade'</a></li></ul><br>The full list of supported headers are: <br><ul><li><a href='https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security'>Strict-Transport-Security</a></li><li><a href='https://en.wikipedia.org/wiki/Content_Security_Policy'>Content-Security-Policy</a></li><li>Content-Security-Policy-Report-Only</li><li>X-Frame-Options</li><li>X-XSS-Protection</li><li>X-Content-Type-Options</li><li>Referrer-Policy</li><li>Expect-CT</li></ul><br>These headers help your browser to protect your website from <a href='https://en.wikipedia.org/wiki/Cross-site_scripting'>XSS</a> and <a href='https://en.wikipedia.org/wiki/Clickjacking'>Clickjacking</a> attacks.</p>" | ||
PLG_SYSTEM_HTTPHEADERS_POSTINSTALL_INTRODUCTION_ACTION="Enable default security headers" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY="Referrer-Policy" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY_NO_REFERRER="no-referrer" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY_NO_REFERRER_WHEN_DOWNGRADE="no-referrer-when-downgrade" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY_SAME_ORIGIN="same-origin" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY_ORIGIN="origin" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY_STRICT_ORIGIN="strict-origin" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY_ORIGIN_WHEN_CROSS_ORIGIN="origin-when-cross-origin" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY_STRICT_ORIGIN_WEHN_CROSS_ORIGIN="strict-origin-when-cross-origin" | ||
PLG_SYSTEM_HTTPHEADERS_REFERRERPOLICY_UNSAFE_URL="unsafe-url" | ||
PLG_SYSTEM_HTTPHEADERS_XCONTENTTYPEOPTIONS="X-Content-Type-Options" | ||
PLG_SYSTEM_HTTPHEADERS_XFRAMEOPTIONS="X-Frame-Options" | ||
PLG_SYSTEM_HTTPHEADERS_XXSSPROTECTION="X-XSS-Protection" |
7 changes: 7 additions & 0 deletions
7
administrator/language/en-GB/en-GB.plg_system_httpheaders.sys.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
; Joomla! Project | ||
; Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved. | ||
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php | ||
; Note : All ini files need to be saved as UTF-8 | ||
|
||
PLG_SYSTEM_HTTPHEADERS="System - HTTPHeaders" | ||
PLG_SYSTEM_HTTPHEADERS_XML_DESCRIPTION="This Plugin can set some Security HTTP Headers" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<ul>
tag should not be inside a<p>
tag.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p>
- tag is removed now.