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

fix(Core/Config): add support '#' for password and etc #4816

Conversation

Winfidonarleyan
Copy link
Member

Changes Proposed:

Issues Addressed:

Tests Performed:

image

How to Test the Changes:

Target Branch(es):

  • Master

How to Test AzerothCore PRs

When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].

You can help by testing PRs and writing your feedback here in the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

@Winfidonarleyan
Copy link
Member Author

@D3thw0lf try this

@github-actions github-actions bot added the CORE label Mar 12, 2021
@Winfidonarleyan Winfidonarleyan marked this pull request as draft March 12, 2021 13:12
@D3thw0lf
Copy link

D3thw0lf commented Mar 13, 2021

Sadly it's still not working as before. Just use one # in your password for your database e.g. thisismy#secret and no other # in the same line. If I add another comment # behind the password stuff it starts.

Example (not working, but working before the linked pull in my issue):
WorldDatabaseInfo = "localhost;3306;root;supersecret#password;world"

Example (now working since this pr):
WorldDatabaseInfo = "localhost;3306;root;supersecret#password;world" #

I hope you understand what I'm trying to tell you. ^^' sorry for my possible bad english sometimes.

@Mitradis
Copy link
Contributor

Mitradis commented Mar 16, 2021

remove all this block:
size_t found = line.find_last_of('#');
if (found != std::string::npos)
line = line.substr(0, found);
why this needed? who will use # in end of string for commenting??? just stuped.

@Winfidonarleyan
Copy link
Member Author

remove all this block:
size_t found = line.find_last_of('#');
if (found != std::string::npos)
line = line.substr(0, found);
why this needed? who will use # in end of string for commenting??? just stuped.

#4781

@Winfidonarleyan Winfidonarleyan deleted the config-comment-last branch June 8, 2021 14:01
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.

Cannot connect to Database if password uses special character
3 participants