translations fixed to be safe
This commit is contained in:
@@ -454,7 +454,14 @@ pub(crate) async fn delete_table(
|
||||
response.headers_mut().insert("hx-redirect", location);
|
||||
response
|
||||
}
|
||||
Err(_) => (StatusCode::INTERNAL_SERVER_ERROR, "Invalid redirect").into_response(),
|
||||
Err(_) => (
|
||||
StatusCode::INTERNAL_SERVER_ERROR,
|
||||
Html(tr!(
|
||||
Locale::from_headers(&headers),
|
||||
"ui-err-invalid-redirect"
|
||||
)),
|
||||
)
|
||||
.into_response(),
|
||||
}
|
||||
}
|
||||
Ok(response) => {
|
||||
|
||||
Reference in New Issue
Block a user