]> git.lyx.org Git - features.git/commitdiff
? and = must not be percent-encoded in hrefs
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 29 Jan 2019 13:49:04 +0000 (14:49 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 30 Jan 2019 07:17:20 +0000 (08:17 +0100)
Fixes: #11482
(cherry picked from commit c2db448ff558f53ebfd93920d7d40f37d9a4211c)

src/insets/InsetHyperlink.cpp
status.23x

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;
index ae3a28ceebfa2e64b9c56617657b2ef193807713..2d7bd62fa4f7587f88f0ab401c6caeee02775775 100644 (file)
@@ -85,6 +85,8 @@ What's new
 
 - Fix paragraph alignment in RTL when using polyglossia (bidi) (bug 11399).
 
+- Fix LaTeX export of query strings in Hyperlinks (bug 11482).
+
 
 * USER INTERFACE