diff --git a/edit_sdocs.cgi b/edit_sdocs.cgi index a7d95e3..d373dda 100755 --- a/edit_sdocs.cgi +++ b/edit_sdocs.cgi @@ -19,7 +19,7 @@ print &ui_table_start($text{'docs_header'}, undef, 2); print &nginx_opt_input("root", $server, 60, undef, &file_chooser_button("root", 1)); -print &nginx_opt_input("index", $server, 60); +print &nginx_opt_input("index", $server, 60, undef, undef, 1); print &nginx_opt_input("default_type", $server, 20); diff --git a/save_sdocs.cgi b/save_sdocs.cgi index 3c994f8..7ca9c7f 100644 --- a/save_sdocs.cgi +++ b/save_sdocs.cgi @@ -18,7 +18,7 @@ $in{'root_def'} || &can_directory($in{'root'}) || "".&html_escape($in{'root'})."", "".&html_escape($access{'root'})."")); -&nginx_opt_parse("index", $server, undef); +&nginx_opt_parse("index", $server, undef, undef, undef, 1); &nginx_opt_parse("default_type", $server, undef, '^[a-zA-Z0-9\.\_\-]+\/[a-zA-Z0-9\.\_\-]+$');