From e0bdc3f87ade8432d4dccd0bb1deed9126d8bdfb Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Wed, 2 Sep 2020 23:33:20 +0300 Subject: [PATCH] Index is multi value --- edit_sdocs.cgi | 2 +- save_sdocs.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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\.\_\-]+$');