[Pkg-owncloud-commits] [owncloud] 317/394: Revoke DB rights on install only if the db is newly created
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:39 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 26e890eb624acbfa41a944309fd776c47b2c9507
Author: Brice Maron <brice at bmaron.net>
Date: Mon Dec 3 20:20:17 2012 +0000
Revoke DB rights on install only if the db is newly created
---
lib/setup.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/setup.php b/lib/setup.php
index 7097d11..97656fd 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -451,9 +451,11 @@ class OC_Setup {
$entry.='Offending command was: '.$query.'<br />';
echo($entry);
}
+ else {
+ $query = "REVOKE ALL PRIVILEGES ON DATABASE \"$e_name\" FROM PUBLIC";
+ $result = pg_query($connection, $query);
+ }
}
- $query = "REVOKE ALL PRIVILEGES ON DATABASE \"$e_name\" FROM PUBLIC";
- $result = pg_query($connection, $query);
}
private static function pg_createDBUser($name,$password,$connection) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list