Klaus Demo nginx / 0f49681
Fixed try_files with empty argument (ticket #390). Maxim Dounin 8 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
47654765
47664766 tf[i].name = value[i + 1];
47674767
4768 if (tf[i].name.data[tf[i].name.len - 1] == '/') {
4768 if (tf[i].name.len > 0
4769 && tf[i].name.data[tf[i].name.len - 1] == '/')
4770 {
47694771 tf[i].test_dir = 1;
47704772 tf[i].name.len--;
47714773 tf[i].name.data[tf[i].name.len] = '\0';