summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-03 06:38:34 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-03 06:38:34 +0000
commitbffc32cd9d619abddfcbbb688e0e4ae5b58c69b8 (patch)
treeed07bac4a88281780a4c042f8635972e4bc19ecd /LedgerSMB
parent2219478ff21e8dbbc5b2ceb564c90cf7ce808e83 (diff)
Making dataset creation safe for remote db servers
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@844 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/User.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm
index 6e4a872e..ea41444c 100755
--- a/LedgerSMB/User.pm
+++ b/LedgerSMB/User.pm
@@ -433,6 +433,8 @@ sub process_query {
$ENV{PGPASSWORD} = $form->{dbpasswd};
$ENV{PGUSER} = $form->{dbuser};
$ENV{PGDATABASE} = $form->{db};
+ $ENV{PGHOST} = $form->{dbhost};
+ $ENV{PGPORT} = $form->{pgport};
$results = `psql -f $filename 2>&1`;
if ($?){