Skip to content

Commit

Permalink
fix missing PercentEncode for HTML TOC stylesheet link
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Nov 11, 2020
1 parent 57e0357 commit b0cdd80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Misc/TOCHTMLWriter.cpp
Expand Up @@ -92,6 +92,7 @@ void TOCHTMLWriter::WriteHead()
// TOC
m_Writer->writeStartElement("link");
QString href = Utility::buildRelativePath(m_TOCBookPath, m_CSSBookPath);
href = Utility::URLEncodePath(href);
m_Writer->writeAttribute("href", href);
m_Writer->writeAttribute("rel", "stylesheet");
m_Writer->writeAttribute("type", "text/css");
Expand Down

0 comments on commit b0cdd80

Please sign in to comment.