? and = must not be percent-encoded in hrefs

Fixes: #11482
(cherry picked from commit c2db448ff5)
This commit is contained in:
Juergen Spitzmueller 2019-01-29 14:49:04 +01:00
parent cc033cbd21
commit f785d63a0a
2 changed files with 4 additions and 2 deletions

View File

@ -133,8 +133,8 @@ void InsetHyperlink::latex(otexstream & os,
if (!url.empty()) { if (!url.empty()) {
// Use URI/URL-style percent-encoded string (hexadecimal). // Use URI/URL-style percent-encoded string (hexadecimal).
// We exclude some characters that must not be transformed // We exclude some characters that must not be transformed
// in hrefs (% # / :) or that we need to treat manually (\). // in hrefs (% # / : ? =) or that we need to treat manually (\).
url = to_percent_encoding(url, from_ascii("%#\\/:")); url = to_percent_encoding(url, from_ascii("%#\\/:?="));
// We handle \ manually since \\ is valid // We handle \ manually since \\ is valid
for (size_t i = 0, pos; for (size_t i = 0, pos;
(pos = url.find('\\', i)) != string::npos; (pos = url.find('\\', i)) != string::npos;

View File

@ -85,6 +85,8 @@ What's new
- Fix paragraph alignment in RTL when using polyglossia (bidi) (bug 11399). - Fix paragraph alignment in RTL when using polyglossia (bidi) (bug 11399).
- Fix LaTeX export of query strings in Hyperlinks (bug 11482).
* USER INTERFACE * USER INTERFACE