fix: profile settings html sanitization
This commit is contained in:
parent
d1e8e2b27c
commit
37d034db39
7 changed files with 6 additions and 66 deletions
|
@ -1,7 +1,6 @@
|
|||
use super::{render_error, PaginatedQuery, ProfileQuery};
|
||||
use crate::{
|
||||
assets::initial_context, check_user_blocked_or_private, get_lang, get_user_from_token,
|
||||
sanitize::clean_settings, State,
|
||||
assets::initial_context, check_user_blocked_or_private, get_lang, get_user_from_token, State,
|
||||
};
|
||||
use axum::{
|
||||
Extension,
|
||||
|
@ -84,7 +83,6 @@ pub async fn settings_request(
|
|||
context.insert("uploads", &uploads);
|
||||
context.insert("stacks", &stacks);
|
||||
context.insert("blocks", &blocks);
|
||||
context.insert("user_settings_serde", &clean_settings(&profile.settings));
|
||||
context.insert(
|
||||
"user_tokens_serde",
|
||||
&serde_json::to_string(&tokens)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue