Properly escape URL parameters

This commit is contained in:
2022-05-27 23:37:54 +02:00
parent 32eb4676ee
commit bc3d4e1c49
5 changed files with 23 additions and 4 deletions

View File

@@ -28,6 +28,10 @@ enum ProjectResponse<T, U> {
Failure(U),
}
pub fn escape(s: &str) -> String {
url_escape::encode_component(s).to_string()
}
pub trait Project {
fn into_repo_config(
self,