Browse code

Fix display of ipv6 addresses on the website

I don't know what WML is doing, but somehow it's treating [FE80::] as a
special thing it doesn't want to display (unlike [::], which it displays
just fine). Fixes bug 18667.

Sebastian Hahn authored on11/10/2016 17:23:28
Showing1 changed files
... ...
@@ -14,7 +14,7 @@
14 14
   <div id="maincol">  
15 15
     <:
16 16
     	die "Missing git clone at $(TORGIT)" unless -d "$(TORGIT)";
17
-    	my $man = `GIT_DIR=$(TORGIT) git show $(STABLETAG):doc/tor.1.txt | asciidoc -d manpage -s -o - -`;
17
+    	my $man = `GIT_DIR=$(TORGIT) git show $(STABLETAG):doc/tor.1.txt | asciidoc -d manpage -s -o - - | sed 's/\\[/\\&lsqb;/g'`;
18 18
     	die "No manpage because of asciidoc error or file not available from git" unless $man;
19 19
     	print $man;
20 20
     :>