1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[gopher] Another try for #33.

This time replace /URL -> URL for h type.
This commit is contained in:
Witold Filipczyk 2019-05-12 22:56:54 +02:00
parent 41c3485add
commit 3d23424b9f

View File

@ -302,6 +302,12 @@ init_gopher_connection_info(struct connection *conn)
selectorlen++; selectorlen++;
} }
if (entity_info->type == GOPHER_HTML && selectorlen > 3
&& strncmp(selector, "/URL", 4) == 0) {
selector++;
selectorlen--;
}
state = add_gopher_command(conn, &command, entity, selector, selectorlen); state = add_gopher_command(conn, &command, entity, selector, selectorlen);
if (!is_in_state(state, S_CONN)) if (!is_in_state(state, S_CONN))
return state; return state;