]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Don't escape with a character that is itself escaped. Thus, encodeURL
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Jun 2000 09:01:44 +0000 (09:01 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Jun 2000 09:01:44 +0000 (09:01 +0000)
gets idempotent and we immediately can forget all problems with it
being called multiply on the same string, which was the reason for
almost all incorrect links.

git-svn-id: https://svn.dealii.org/trunk@3097 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/kdoc/src/kdocHTMLutil.pm

index 2929ba331a0b0e57f60b8c2fadb3948190479e4d..769876efcfb17d4e36aa8172ee0934162c329607 100644 (file)
@@ -715,11 +715,11 @@ sub deref
 sub encodeURL
 {
        my $url = shift;
-       $url =~ s/:/%3A/g;
-       $url =~ s/</%3C/g;
-       $url =~ s/>/%3E/g;
-       $url =~ s/ /%20/g;
-       $url =~ s/%/%25/g;
+       $url =~ s/%/\@25/g;
+       $url =~ s/:/\@3A/g;
+       $url =~ s/</\@3C/g;
+       $url =~ s/>/\@3E/g;
+       $url =~ s/ /\@20/g;
 
        return $url;
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.