diff --git a/attachments_component/admin/config.xml b/attachments_component/admin/config.xml index 6156f067..f99fd02d 100644 --- a/attachments_component/admin/config.xml +++ b/attachments_component/admin/config.xml @@ -201,7 +201,7 @@
+ + diff --git a/attachments_component/admin/language/en-GB/en-GB.com_attachments.ini b/attachments_component/admin/language/en-GB/en-GB.com_attachments.ini index 95f166f8..9883e419 100644 --- a/attachments_component/admin/language/en-GB/en-GB.com_attachments.ini +++ b/attachments_component/admin/language/en-GB/en-GB.com_attachments.ini @@ -414,4 +414,17 @@ ATTACH_FILE_SIZE_DESC="File Size descending" ATTACH_MODIFIED_ASC="Modified ascending" ATTACH_MODIFIED_DESC="Modified descending" ATTACH_USER_FIELD_N_ASC="%s ascending" -ATTACH_USER_FIELD_N_DESC="%s descending" \ No newline at end of file +ATTACH_USER_FIELD_N_DESC="%s descending" + +ATTACH_TEST_IS_SECURE_FILE="Test uploaded file security" +ATTACH_TEST_IS_SECURE_FILE_DESCRIPTION="Test if uploaded file is secure: prevent files with a null byte in their name, do not allow forbiden extensions anywhere in the file's extension, Do not allow `< ? php` or `< ?` tag in content, etc., if set to No - allow all files to be uploaded without checking." + +ATTACH_COM_CONTENT_SELECT_ARTICLE="Select an article"; +ATTACH_COM_CONTENT_SELECT_ARTICLE_DESCRIPTION="Select an article to which we want Attachment to be attached."; +ATTACH_COM_CONTENT_SELECT_CATEGORY="Select a category"; +ATTACH_COM_CONTENT_SELECT_CATEGORY_DESCRIPTION="Select a category to which we want Attachment to be attached."; +ATTACH_COM_CONTENT_ARTICLE="Article" +ATTACH_COM_CONTENT_CATEGORY="Category" + +ATTACH_ERROR_INVALID_PARENT_ENTITY_NOT_SELECTED="Entity for parent ID (%d) not selected." +ATTACH_FILENAME_CURRENT="Current file name: %s" \ No newline at end of file diff --git a/attachments_component/admin/src/Controller/AttachmentController.php b/attachments_component/admin/src/Controller/AttachmentController.php index 94b8ec3d..45c209f3 100644 --- a/attachments_component/admin/src/Controller/AttachmentController.php +++ b/attachments_component/admin/src/Controller/AttachmentController.php @@ -90,8 +90,9 @@ public function add() { // Fail gracefully if the Attachments plugin framework plugin is disabled if (!PluginHelper::isEnabled('attachments', 'framework')) { - echo '