Don't log BasicAuth
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <strings.h>
|
||||||
|
|
||||||
#include <os/Mutex.h>
|
#include <os/Mutex.h>
|
||||||
|
|
||||||
@@ -432,6 +433,7 @@ bool StringParameter::setParam(const char* v) {
|
|||||||
if (immutable) return true;
|
if (immutable) return true;
|
||||||
if (!v)
|
if (!v)
|
||||||
throw rfb::Exception("setParam(<null>) not allowed");
|
throw rfb::Exception("setParam(<null>) not allowed");
|
||||||
|
if (strcasecmp(getName(), "BasicAuth")) // don't log the auth info
|
||||||
vlog.debug("set %s(String) to %s", getName(), v);
|
vlog.debug("set %s(String) to %s", getName(), v);
|
||||||
CharArray oldValue(value);
|
CharArray oldValue(value);
|
||||||
value = strDup(v);
|
value = strDup(v);
|
||||||
|
|||||||
Reference in New Issue
Block a user