Skip to content
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

[5.2] Fix media manager invalid filename #45141

Open
wants to merge 2 commits into
base: 5.2-dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix: Add language string for invalid filename error
This commit adds a new language string to support the validation of filenames containing the '$' character. The new string, COM_MEDIA_ERROR_INVALID_FILENAME, provides a clear error message when a filename with disallowed characters is encountered, ensuring consistent feedback for users.

Language string added:
COM_MEDIA_ERROR_INVALID_FILENAME="Invalid file name."

This update complements the changes in ApiModel.php for consistent handling of invalid filenames. See Issue #45087 for details.
  • Loading branch information
STUDYHUB02 authored Mar 15, 2025
commit 44e5e47503caf82d0c25c3c7fb8a68c1107fa4f9
1 change: 1 addition & 0 deletions language/en-GB/com_media.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ COM_MEDIA_DROP_FILE="Drop file(s) to Upload"
COM_MEDIA_ERROR="An error occurred."
COM_MEDIA_ERROR_BAD_REQUEST="Bad Request"
COM_MEDIA_ERROR_FILE_EXISTS="File already exists."
COM_MEDIA_ERROR_INVALID_FILENAME="Invalid file name."
COM_MEDIA_ERROR_NOT_AUTHENTICATED="You are not authenticated. Please login."
COM_MEDIA_ERROR_NOT_AUTHORIZED="You are not authorised"
COM_MEDIA_ERROR_NOT_FOUND="File or Folder not found"
Expand Down