-
Notifications
You must be signed in to change notification settings - Fork 81
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
Postgres rake fixes #52
Conversation
…buntu where pg_wrapper doesn't work properly.
… handler so we invoke the commands with the correct arguments.
…he non-JDBC Postgres adapter.
Hi @nirvdrum, thanks for the pull-request. The problem with using backticks and joining the commands strings is that the result is not escaped correctly. In Ruby > 1.9 there is a It's great that it works with backticks, but if we're going to use it we need to be sure the commands are correctly escaped. Granted we want to keep the Ruby 1.8.x compatibility, the best way to do it would probably to vendor What do you think? |
That's fair. I assumed since this was all configured input rather than generated from random 3rd parties that the security concerns would be minimal. An alternative proposal is to just try to load Shellwords and if it fails, call |
Yes the reason is not so much about security risk than problem related to database or user/owner names. |
…ted value between backticks and :system calls.
@JonathanTron Let me know what you think of the latest commit. |
That's excellent! Thanks! |
No description provided.