[ 1717658 ] Status bean unprotected in default install

This commit is contained in:
Heng Sin Low 2007-09-16 09:10:43 +00:00
parent 8db5615d78
commit fd8bd2431d
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,8 @@ import org.compiere.util.*;
*/
public class StatusBean implements SessionBean
{
private static final String ALLOW_CLIENT_QUERY_DB_PWD = "adempiere.client.getDBPwd";
/** Context */
private SessionContext m_Context;
/** Logging */
@ -151,6 +153,10 @@ public class StatusBean implements SessionBean
*/
public String getDbPwd()
{
String f = System.getProperty(ALLOW_CLIENT_QUERY_DB_PWD);
if ("false".equalsIgnoreCase(f))
return "";
return CConnection.get().getDbPwd();
} // getDbPWD