1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[about] Allow change options only from about:config page

This commit is contained in:
Witold Filipczyk 2021-12-30 14:48:14 +01:00
parent ca2c36a467
commit c019efba2c

View File

@ -100,7 +100,9 @@ about_protocol_handler(struct connection *conn)
if (!strncmp(conn->uri->data, "config", 6)) { if (!strncmp(conn->uri->data, "config", 6)) {
char *str; char *str;
set_option_or_save(conn->uri->data); if (conn->referrer && conn->referrer->protocol == PROTOCOL_ABOUT) {
set_option_or_save(conn->uri->data);
}
str = create_about_config_string(); str = create_about_config_string();
if (str) { if (str) {