Skip to content
Snippets Groups Projects
Commit 16cc9df2 authored by rswindell's avatar rswindell
Browse files

Fixed run-time check for JavaScript support, using HTML_INDEX toggle.

parent a5f8b9c6
No related branches found
No related tags found
No related merge requests found
......@@ -4107,7 +4107,9 @@ void DLLCALL ftp_server(void* arg)
if(startup->html_index_script[0]==0) { strcpy(startup->html_index_script,"ftp-html.js");
startup->options|=FTP_OPT_HTML_INDEX_FILE;
}
if(!(startup->options&FTP_OPT_HTML_INDEX_FILE))
if(startup->options&FTP_OPT_HTML_INDEX_FILE)
startup->options&=~FTP_OPT_NO_JAVASCRIPT;
else
startup->options|=FTP_OPT_NO_JAVASCRIPT;
thread_up();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment