Permalink
Browse files

Bug 765001 - Bad character escaping scheme in HTML anchor generation.

  • Loading branch information...
c-lipka committed Apr 27, 2016
1 parent a56e454 commit 6136cf9e3ad70d58cac4d8022cce8c8729805119
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/htmlhelp.cpp
View
@@ -134,7 +134,17 @@ static QCString field2URL(const IndexField *f,bool checkReversed)
QCString result = f->url + Doxygen::htmlFileExtension;
if (!f->anchor.isEmpty() && (!checkReversed || f->reversed))
{
result+="#"+f->anchor;
result+="#";
// HTML Help needs colons in link anchors to be escaped in the .hhk file.
int prev = 0;
int next;
while ((next=f->anchor.find(':', prev))!=-1)
{
result+=f->anchor.mid(prev,next-prev);
result+="%3A";
prev=next+1;
}
result+=f->anchor.mid(prev);
}
return result;
}

0 comments on commit 6136cf9

Please sign in to comment.