]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHyperlink.cpp
? and = must not be percent-encoded in hrefs
[lyx.git] / src / insets / InsetHyperlink.cpp
index aae07ce0da8867a9c4b449508ed6ffb1f5eeeff9..93dbaa94c576a8e6355583dddcd33ce89bf3692e 100644 (file)
@@ -133,8 +133,8 @@ 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;