Skip to content
Snippets Groups Projects
Commit 6b960e1b authored by rswindell's avatar rswindell
Browse files

Added JS_MaxBytes value to the [Web] section.

All JS_MaxBytes value default to the value specified in the [BBS] section.
parent 679b1db5
Branches
Tags
No related merge requests found
......@@ -195,7 +195,7 @@ void sbbs_read_ini(
ftp->qwk_timeout
=iniReadShortInt(fp,section,"QwkTimeout",600); /* seconds */
ftp->js_max_bytes
=iniReadInteger(fp,section,"JavaScriptMaxBytes",0);
=iniReadInteger(fp,section,"JavaScriptMaxBytes",bbs->js_max_bytes);
SAFECOPY(ftp->host_name
,iniReadString(fp,section,"HostName",host_name));
......@@ -282,7 +282,7 @@ void sbbs_read_ini(
=iniReadIpAddress(fp,section,"Interface",INADDR_ANY);
services->js_max_bytes
=iniReadInteger(fp,section,"JavaScriptMaxBytes",0);
=iniReadInteger(fp,section,"JavaScriptMaxBytes",bbs->js_max_bytes);
SAFECOPY(services->host_name
,iniReadString(fp,section,"HostName",host_name));
......@@ -309,6 +309,8 @@ void sbbs_read_ini(
=iniReadIpAddress(fp,section,"Interface",INADDR_ANY);
web->port
=iniReadShortInt(fp,section,"Port",IPPORT_HTTP);
web->js_max_bytes
=iniReadInteger(fp,section,"JavaScriptMaxBytes",bbs->js_max_bytes);
SAFECOPY(web->host_name
,iniReadString(fp,section,"HostName",host_name));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment