diff --git a/plume-common/src/utils.rs b/plume-common/src/utils.rs index 98514f9f..409b9d07 100644 --- a/plume-common/src/utils.rs +++ b/plume-common/src/utils.rs @@ -29,7 +29,7 @@ pub fn make_actor_id(name: &str) -> String { * Note that the message should be translated before passed to this function. */ pub fn requires_login>>(message: &str, url: T) -> Flash { - Flash::new(Redirect::to(format!("/login?m={}", message)), "callback", url.into().to_string()) + Flash::new(Redirect::to(format!("/login?m={}", Uri::percent_encode(message))), "callback", url.into().to_string()) } #[derive(Debug)]