diff mbox series

[1/1] docparse: Fix parsing URL containing '|' in links

Message ID 20210520152138.23772-1-pvorel@suse.cz
State Accepted
Headers show
Series [1/1] docparse: Fix parsing URL containing '|' in links | expand

Commit Message

Petr Vorel May 20, 2021, 3:21 p.m. UTC
That fixes formatting for commit in close_range01:
fec8a6a69103 ("close_range: unshare all fds for CLOSE_RANGE_UNSHARE | CLOSE_RANGE_CLOEXEC")

Reported-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

hope this is enough to be escaped.
I tested various:
== \|= # - ## -- ___

Also one day I wrote docparser test :).

Kind regards,
Petr

 docparse/testinfo.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Cyril Hrubis May 25, 2021, 9:09 a.m. UTC | #1
Hi!

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Petr Vorel May 25, 2021, 9:44 a.m. UTC | #2
Hi Cyril,

> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Thanks, merged!

Kind regards,
Petr
diff mbox series

Patch

diff --git a/docparse/testinfo.pl b/docparse/testinfo.pl
index 31148e3a4..6e05982e5 100755
--- a/docparse/testinfo.pl
+++ b/docparse/testinfo.pl
@@ -96,8 +96,8 @@  sub html_a
 {
 	my ($url, $text) = @_;
 
-	# escape ]
-	$text =~ s/([]])/\\$1/g;
+	# escape: ] |
+	$text =~ s/([]|])/\\$1/g;
 
 	return "$url\[$text\]";
 }