• Gregory Maxwell's avatar
    Sanitize command strings before logging them. · 07a8820a
    Gregory Maxwell authored
    Normally bitcoin core does not display any network originated strings without
     sanitizing or hex encoding.  This wasn't done for strcommand in many places.
    
    This could be used to play havoc with a terminal displaying the logs,
     especially with printtoconsole in use.
    
    Thanks to Evil-Knievel for reporting this issue.
    
    Conflicts:
    	src/main.cpp
    	src/net.cpp
    	src/rpcserver.cpp
    
    Rebased-From: 28d4cff0
    Github-Pull: #5770
    07a8820a
main.cpp 162 KB