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

Security: Could we please not throw the hostnames connection string when connection fails. #58

Open
tusharvikky opened this issue Apr 23, 2014 · 1 comment

Comments

@tusharvikky
Copy link
Contributor

Hello,
Either we could just throw Unable to connect to server, Please contact Server Admin.
-or- something like this.

https://github.com/purekid/mongodm/blob/master/src/Purekid/Mongodm/MongoDB.php#L189

@jrschumacher
Copy link
Collaborator

Throwing the hostname connection is done by MongoDB. However you bring up a good point with regards to security. Maybe we could add a catch for those and route them to Mongodb style exceptions.

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

No branches or pull requests

2 participants