mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
31.58.2016 0222a07d308e6d241b48d116e4801d56885ef9de
Minor fix: don't add newline when decoding base 64
1 files modified
7 ■■■■■ changed files
opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/Base64.java 7 ●●●●● patch | view | raw | blame | history
opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/Base64.java
@@ -290,10 +290,9 @@
                    outputStream.write(decodedData);
                }
            } else {
                final PrintStream outputPrintStream = getOutputStream();
                outputPrintStream.write(decodedData);
                outputPrintStream.println();
                outputPrintStream.flush();
                try (final PrintStream outputPrintStream = getOutputStream()) {
                    outputPrintStream.write(decodedData);
                }
            }
        } catch (final Exception e) {
            throw newToolException(e, ResultCode.OPERATIONS_ERROR,