web config would write blank passwords
This commit is contained in:
parent
e76fe090f8
commit
8fedf2d818
|
@ -311,6 +311,7 @@ int config_write(WS_CONNINFO *pwsc) {
|
||||||
fprintf(configfile,"servername\t%s\n",ws_getvar(pwsc,"servername"));
|
fprintf(configfile,"servername\t%s\n",ws_getvar(pwsc,"servername"));
|
||||||
fprintf(configfile,"runas\t\t%s\n",ws_getvar(pwsc,"runas"));
|
fprintf(configfile,"runas\t\t%s\n",ws_getvar(pwsc,"runas"));
|
||||||
fprintf(configfile,"playlist\t%s\n",ws_getvar(pwsc,"playlist"));
|
fprintf(configfile,"playlist\t%s\n",ws_getvar(pwsc,"playlist"));
|
||||||
|
if(ws_getvar(pwsc,"password") && strlen(ws_getvar(pwsc,"password")))
|
||||||
fprintf(configfile,"password\t%s\n",ws_getvar(pwsc,"password"));
|
fprintf(configfile,"password\t%s\n",ws_getvar(pwsc,"password"));
|
||||||
fprintf(configfile,"extensions\t%s\n",ws_getvar(pwsc,"extensions"));
|
fprintf(configfile,"extensions\t%s\n",ws_getvar(pwsc,"extensions"));
|
||||||
fprintf(configfile,"db_dir\t\t%s\n",ws_getvar(pwsc,"db_dir"));
|
fprintf(configfile,"db_dir\t\t%s\n",ws_getvar(pwsc,"db_dir"));
|
||||||
|
|
Loading…
Reference in New Issue