From: Juergen Spitzmueller Date: Tue, 29 Jan 2019 13:49:04 +0000 (+0100) Subject: ? and = must not be percent-encoded in hrefs X-Git-Tag: 2.3.3~31 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f785d63a0a4d6bc02c955036c22b3d504260baef;p=features.git ? and = must not be percent-encoded in hrefs Fixes: #11482 (cherry picked from commit c2db448ff558f53ebfd93920d7d40f37d9a4211c) --- diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index aae07ce0da..93dbaa94c5 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -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; diff --git a/status.23x b/status.23x index ae3a28ceeb..2d7bd62fa4 100644 --- a/status.23x +++ b/status.23x @@ -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