mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
More exceptions to percent encoding
See #11511
(cherry picked from commit 3c83f01f1b
)
This commit is contained in:
parent
7d806ebbb6
commit
d3c47dcb13
@ -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;
|
||||
|
@ -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).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user