void sanitizeFieldAdditionalActions(PDFormFieldAdditionalActions fieldActions) { if (fieldActions.getC() != null) { LOGGER.debug( "Found&removed an action to be performed in order to recalculate the value of this field when that of another field changes."); fieldActions.setC(null); pdfBleachSession.recordJavascriptThreat("FormAdditionalActions", "Action on value change"); } if (fieldActions.getF() != null) { LOGGER.debug( "Found&removed an action to be performed before the field is formatted to display its current value."); fieldActions.setF(null); pdfBleachSession .recordJavascriptThreat("FormAdditionalActions", "Action to format the value"); } if (fieldActions.getK() != null) { LOGGER.debug( "Found&removed an action to be performed when the user types a keystroke into a text field or combo box or modifies the selection in a scrollable list box."); fieldActions.setK(null); pdfBleachSession .recordJavascriptThreat("FormAdditionalActions", "Action when the user types a keystoke"); } if (fieldActions.getV() != null) { LOGGER.debug( "Found&removed an action to be action to be performed when the field's value is changed."); fieldActions.setV(null); pdfBleachSession.recordJavascriptThreat("FormAdditionalActions", "Action when the field's value is changed"); } }