mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Do not percent-encode & in urls
This is query syntax
Fixes: #11511
follows up [c2db448ff5/lyxgit]
(cherry picked from commit 936cddc715
)
This commit is contained in:
parent
48e282426c
commit
7d806ebbb6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user