Skip to content

Commit

Permalink
encode the parameter in url query
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Aug 5, 2024
1 parent 3eb5e43 commit f04d3d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ impl Templated {
}
}

url = url.replace(&format!("%{name}%"), &value);
let encoded_value = urlencoding::encode(&value);
url = url.replace(&format!("%{name}%"), &encoded_value);
}

SourceConfig::Simple(url)
Expand Down

0 comments on commit f04d3d8

Please sign in to comment.