diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-07-11 20:45:05 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-07-11 20:47:28 -1000 |
commit | 75447b9a5b02e30932500d372d647f862e05c530 (patch) | |
tree | 0c141037a5fcecdb019cf65108ca57bd567b4e6b | |
parent | 051b1e60c1e80994388521ae37d7035babbd12b6 (diff) |
allow selectors without beginning slash
-rw-r--r-- | gopher.filter.dpi.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gopher.filter.dpi.c b/gopher.filter.dpi.c index 5e40b2a..9420b89 100644 --- a/gopher.filter.dpi.c +++ b/gopher.filter.dpi.c @@ -207,10 +207,8 @@ static void render_line_link(char type, const char *title, const char *selector, if (type) { putchar('/'); putchar_htmlenc(type); - putchar('/'); } if (selector) { - if (*selector == '/') selector++; print_htmlenc(selector); } printf("\">"); @@ -237,10 +235,8 @@ static void render_line_search(char type, const char *title, const char *selecto if (type) { putchar('/'); putchar_htmlenc(type); - putchar('/'); } if (selector) { - if (*selector == '/') selector++; print_htmlenc(selector); } printf("\"><pre>%*s", indent, ""); |