diff --git a/src/app.rs b/src/app.rs index 60c80e0..7a739b2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -42,7 +42,7 @@ async fn checkout_handler(State(state): State, Query(param): Query { + legit_path if param.path.contains("/") || state.check_country_existed(param.path.as_str()) || param.path.is_empty() => { let rpath = repo_path.unwrap().clone(); let repo = match Repository::open_bare(rpath) { Ok(repo) => repo,