diff options
author | Arik Devens <arik@src.gnome.org> | 2001-03-01 22:19:27 +0000 |
---|---|---|
committer | Arik Devens <arik@src.gnome.org> | 2001-03-01 22:19:27 +0000 |
commit | bc5bc3f2ffa4ba7417aa2f4ddb4be78b5d606425 (patch) | |
tree | f0841ae8fd7a5e473ed1efccd6f517b788fb0025 | |
parent | 726ff2b6b30aac9aaab55548a986100d44e8947b (diff) | |
download | yelp-bc5bc3f2ffa4ba7417aa2f4ddb4be78b5d606425.tar.gz |
Changed so that info anchor tag uri's are always local. Fixes bug 6756.
-rw-r--r-- | src/info2html/html.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/info2html/html.c b/src/info2html/html.c index 31db2e2c..f5dd8e54 100644 --- a/src/info2html/html.c +++ b/src/info2html/html.c @@ -53,7 +53,8 @@ char *form_info_tag_href( char *nodefile, char *nodename ) else filename = nodefile; - g_snprintf(tmp,sizeof(tmp),"HREF=\"info:%s#%s\"", filename, escaped_nodename ); + g_snprintf (tmp, sizeof (tmp), "HREF=\"#%s\"", escaped_nodename); + if (escaped_nodename) g_free(escaped_nodename); return g_strdup(tmp); |