You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a database backup from the ui and the CRAFT_DB_PASSWORD is set to a string containing "!" (exlamation mark) or "`" (backtick), then the backup (in the admin ui) fails. In the logs we can find the reason:
The backtick triggers this error. When i remove it then i face another problem: the exclamation mark: In bash this is interpreted as event. If i enter "!Test" as password, then i get the error -bash: !Test: event not found
Steps to reproduce
Setup craft with a postgres-db
Choose a password with backtick or exclamation mark
Do a database-backup via admin-ui
Expected behavior
The special characters should be escaped properly when the command is concatinated.
Actual behavior
The special characters are not properly escaped.
Craft CMS version
5.7.2
PHP version
8.2
Operating system and version
Debian GNU/Linux 11 (bullseye)
Database type and version
Postgres 15.12
Image driver and version
No response
Installed plugins and versions
craftcms/ckeditor: 4.7.0
verbb/field-manager: 4.0.3
verbb/zen 2.0.4
The text was updated successfully, but these errors were encountered:
What happened?
Description
When generating a database backup from the ui and the CRAFT_DB_PASSWORD is set to a string containing "!" (exlamation mark) or "`" (backtick), then the backup (in the admin ui) fails. In the logs we can find the reason:
The backtick triggers this error. When i remove it then i face another problem: the exclamation mark: In bash this is interpreted as event. If i enter "!Test" as password, then i get the error
-bash: !Test: event not found
Steps to reproduce
Expected behavior
The special characters should be escaped properly when the command is concatinated.
Actual behavior
The special characters are not properly escaped.
Craft CMS version
5.7.2
PHP version
8.2
Operating system and version
Debian GNU/Linux 11 (bullseye)
Database type and version
Postgres 15.12
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: