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

Change Login changePassword, fixes #456 #457

Merged

Conversation

svenseeberg
Copy link
Contributor

When the function changePassword is called, it passes the table name to db_update() which already was treated by the table_by_key() function. However, db_update() also calls the table_by_key() function for the table name argument. This results in double backticks and causes PHP errors for users that want to change their password.

Signed-off-by: Sven Seeberg mail@sven-seeberg.de

* The db_udpate function already sets backticks around the table
  name, which results and error name if the string passed as argument
  for the table name already contains backticks.

Signed-off-by: Sven Seeberg <mail@sven-seeberg.de>
Copy link
Member

@DavidGoodwin DavidGoodwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! I saw a similar problem elsewhere which was triggered by a unit test.

@DavidGoodwin DavidGoodwin merged commit cc8cfff into postfixadmin:master Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants