From: Juergen Spitzmueller Date: Sun, 10 Mar 2019 15:37:31 +0000 (+0100) Subject: More exceptions to percent encoding X-Git-Tag: 2.3.3~10 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d3c47dcb13354e2f658c9e2f3a7f2ab591767bf6;p=features.git More exceptions to percent encoding See #11511 (cherry picked from commit 3c83f01f1b8b76b63a8f4892bb7635817ed1e12c) --- diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index 07185a425e..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; diff --git a/status.23x b/status.23x index 5243604d9f..0d2e137080 100644 --- a/status.23x +++ b/status.23x @@ -87,7 +87,7 @@ What's new - Fix paragraph alignment in RTL when using polyglossia (bidi) (bug 11399). -- Fix LaTeX export of query strings in Hyperlinks (bug 11482). +- Fix LaTeX export of query strings in Hyperlinks (bugs 11482, 11511). - Fix breakage caused by commas in the caption of listings (bug 11484).