X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHyperlink.cpp;h=a500f7bd5913b35d7ea54c226e56826af4eeab9e;hb=58cf1c5345104cb3071bf6788f65e4fae07ac749;hp=aae07ce0da8867a9c4b449508ed6ffb1f5eeeff9;hpb=01d8f418943f5f63f329658d387a7dbd9a024c91;p=lyx.git diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index aae07ce0da..a500f7bd59 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -133,8 +133,9 @@ void InsetHyperlink::latex(otexstream & os, if (!url.empty()) { // Use URI/URL-style percent-encoded string (hexadecimal). // We exclude some characters that must not be transformed - // in hrefs (% # / :) or that we need to treat manually (\). - url = to_percent_encoding(url, from_ascii("%#\\/:")); + // in hrefs: % # / : ? = & ! * ' ( ) ; @ + $ , [ ] + // or that we need to treat manually: \. + url = to_percent_encoding(url, from_ascii("%#\\/:?=&!*'();@+$,[]")); // We handle \ manually since \\ is valid for (size_t i = 0, pos; (pos = url.find('\\', i)) != string::npos;