Skip to content
Commit 10da5796 authored by Murray Cumming's avatar Murray Cumming
Browse files

PostgreSQL backend: Use g_shell_quote().

* glom/libglom/connectionpool_backends/postgres.[h|cc]:
get_path_to_postgres_executable(): Return the already-quoted path
to avoid the need for manual quoting by the caller.
However, make this optional (but the default) so that the check in
* main.cc: can still work.
* glom/libglom/connectionpool_backends/postgres_self.cc: Use
Glib::shell_quote() instead of manually adding quote characters.
Hopefully this also escapes special characters, though we should try to
test this somehow.
parent 8fcb1f80
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment