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
stuchalk opened this issue
Jul 6, 2021
· 1 comment
· Fixed by #17010
Assignees
Labels
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
When a database name has a '' preceded by a digit in its name and a user is assigned to the database via the multiselect list on the 'database' tab of the 'Edit privileges' page, the name of the database is corrupted because of the '\' needed to escape the database name in the multiselect list. If additional databases with '', but no digit preceding, are selected they are also affected, whereas if only a database with a '_' and no digit preceding is selected it is not affected.
To Reproduce
Steps to reproduce the behavior:
Go to 'phpmyadmin/index.php?route=/server/privileges&username=temp&hostname=localhost'
Click on 'database' tab
Choose database with '_' in name
Click 'go'
View list of databases assigned to user
Expected behavior
The database name assigned to user is the same as that chosen form the multiselect list
Screenshots
Server configuration
Operating system: macos
Web server: Apache/2.4.48
Database version: 10.3.28-MariaDB
PHP version: 7.4.20
phpMyAdmin version: 5.1.1
Client configuration
Browser: Chrome
Operating system: macos Big Sur
Additional context
I have seen this bug for a while. You can get around it by typing the database name in the box to the right of the multiselect list.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Describe the bug
When a database name has a '' preceded by a digit in its name and a user is assigned to the database via the multiselect list on the 'database' tab of the 'Edit privileges' page, the name of the database is corrupted because of the '\' needed to escape the database name in the multiselect list. If additional databases with '', but no digit preceding, are selected they are also affected, whereas if only a database with a '_' and no digit preceding is selected it is not affected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The database name assigned to user is the same as that chosen form the multiselect list
Screenshots
Server configuration
Client configuration
Additional context
I have seen this bug for a while. You can get around it by typing the database name in the box to the right of the multiselect list.
The text was updated successfully, but these errors were encountered: