mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
html.c: Also encode html characters in admin page
This commit is contained in:
parent
47adfa169a
commit
2d584d219a
1 changed files with 9 additions and 9 deletions
18
html.c
18
html.c
|
@ -549,26 +549,26 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
|
|
||||||
L("User setup..."),
|
L("User setup..."),
|
||||||
snac->actor,
|
snac->actor,
|
||||||
L("User name"),
|
L("Display name"),
|
||||||
xs_dict_get(snac->config, "name"),
|
encode_html(xs_dict_get(snac->config, "name")),
|
||||||
L("Avatar"),
|
L("Avatar"),
|
||||||
L("Bio"),
|
L("Bio"),
|
||||||
xs_dict_get(snac->config, "bio"),
|
encode_html(xs_dict_get(snac->config, "bio")),
|
||||||
strcmp(cw, "open") == 0 ? "checked" : "",
|
strcmp(cw, "open") == 0 ? "checked" : "",
|
||||||
L("Always show sensitive content"),
|
L("Always show sensitive content"),
|
||||||
L("Email address for notifications"),
|
L("Email address for notifications"),
|
||||||
email,
|
encode_html(email),
|
||||||
L("Telegram notifications (bot key and chat id)"),
|
L("Telegram notifications (bot key and chat id)"),
|
||||||
telegram_bot,
|
encode_html(telegram_bot),
|
||||||
telegram_chat_id,
|
encode_html(telegram_chat_id),
|
||||||
L("Maximum days to keep posts (0: server settings)"),
|
L("Maximum days to keep posts (0: server settings)"),
|
||||||
purge_days,
|
encode_html(purge_days),
|
||||||
xs_type(d_dm_f_u) == XSTYPE_TRUE ? "checked" : "",
|
xs_type(d_dm_f_u) == XSTYPE_TRUE ? "checked" : "",
|
||||||
L("Drop direct messages from people you don't follow"),
|
L("Drop direct messages from people you don't follow"),
|
||||||
xs_type(bot) == XSTYPE_TRUE ? "checked" : "",
|
xs_type(bot) == XSTYPE_TRUE ? "checked" : "",
|
||||||
L("This account is a bot"),
|
L("This account is a bot"),
|
||||||
L("Password (only to change it)"),
|
L("New Password"),
|
||||||
L("Repeat Password"),
|
L("Repeat New Password"),
|
||||||
L("Update user info")
|
L("Update user info")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue