diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-16 20:22:02 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-16 20:22:02 (GMT) |
commit | 736557cabb38a37f12cb630adca9ef693646a980 (patch) | |
tree | 8ee3321252016d1c033c2f14fdc1a81cc97c81ca /src/util.cpp | |
parent | 164ba66d123030aabc54d26d8d4b49777c0bb35a (diff) | |
download | Doxygen-736557cabb38a37f12cb630adca9ef693646a980.zip Doxygen-736557cabb38a37f12cb630adca9ef693646a980.tar.gz Doxygen-736557cabb38a37f12cb630adca9ef693646a980.tar.bz2 |
Simplified escaping for latex URLs
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/util.cpp b/src/util.cpp index 5e0a4c6..ef1e709 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -5337,17 +5337,8 @@ QCString latexFilterURL(const char *s) default: if (c<0) { - char ids[5]; - int charLen = getUtf8Char(p-1,ids); - if (charLen>0) - { - t << ids; - p+=charLen-1; - } - else - { - // skip invalid character - } + unsigned char id = (unsigned char)c; + t << "\\%" << hex[id>>4] << hex[id&0xF]; } else { |