mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-03 00:25:40 +02:00
Don't log BasicAuth
This commit is contained in:
parent
bb71cd4ec4
commit
ae07707e66
@ -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,7 +433,8 @@ 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");
|
||||||
vlog.debug("set %s(String) to %s", getName(), v);
|
if (strcasecmp(getName(), "BasicAuth")) // don't log the auth info
|
||||||
|
vlog.debug("set %s(String) to %s", getName(), v);
|
||||||
CharArray oldValue(value);
|
CharArray oldValue(value);
|
||||||
value = strDup(v);
|
value = strDup(v);
|
||||||
return value != 0;
|
return value != 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user