Fix [ 1619300 ] Passwords shown in context variables

This commit is contained in:
Carlos Ruiz 2008-02-14 04:33:50 +00:00
parent 50d0a61176
commit ac21848e01
1 changed files with 15 additions and 1 deletions

View File

@ -954,6 +954,19 @@ public class GridField
{
return m_vo.IsEncryptedField;
}
/**
* Is Encrypted Field (display) or obscured
* @return encrypted field
*/
public boolean isEncrypted()
{
if (m_vo.IsEncryptedField)
return true;
String ob = getObscureType();
if (ob != null && ob.length() > 0)
return true;
return m_vo.ColumnName.equals("Password");
}
/**
* Is Encrypted Column (data)
* @return encrypted column
@ -1207,7 +1220,8 @@ public class GridField
|| m_vo.displayType == DisplayType.Memo
|| m_vo.displayType == DisplayType.TextLong
|| m_vo.displayType == DisplayType.Binary
|| m_vo.displayType == DisplayType.RowID)
|| m_vo.displayType == DisplayType.RowID
|| isEncrypted())
; // ignore
else if (newValue instanceof Boolean)
{