Skip to content

Commit

Permalink
Index is multi value
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Sep 2, 2020
1 parent 94fdd02 commit e0bdc3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edit_sdocs.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion save_sdocs.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $in{'root_def'} || &can_directory($in{'root'}) ||
"<tt>".&html_escape($in{'root'})."</tt>",
"<tt>".&html_escape($access{'root'})."</tt>"));

&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\.\_\-]+$');
Expand Down

0 comments on commit e0bdc3f

Please sign in to comment.