HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2017-11-23 02e4e1adbc7c74e4ccc18ec46f9b63a7ac65affa
optimize logging
1 files modified
7 ■■■■ changed files
hsarback/src/de/hsadmin/core/qserv/CommandShell.java 7 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/qserv/CommandShell.java
@@ -27,8 +27,11 @@
            if (stdInput != null && !"newusers".equals(logCommand))  {
                if (logCommand != null && (logCommand.startsWith("newusers") || logCommand.startsWith("chpasswd"))) {
                    // escape new password !
                    final String[] strings = stdInput.split(":", 3);
                    logCommand += "<<EOF\n" + strings[0] + ":***:" + strings[2] + "EOF";
                    final String[] strings = stdInput.split("\\:", 3);
                    logCommand += "<<EOF\n" + strings[0] + ":***:";
                    if (strings.length > 2) {
                        logCommand += strings[2] + "EOF";
                    }
                } else {
                    logCommand += "<<EOF\n" + stdInput + "EOF";
                }