Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added XHTML support for  , ©, and ®.

  • Loading branch information...
commit 2f684e15b1911fc952bbbbe289b58e45ed6bd282 1 parent 4338c17
nakahiro authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 src/cgi.pl
8 src/cgi.pl
... ... @@ -1,4 +1,4 @@
1   -# $Id: cgi.pl,v 2.48 2000-06-14 15:20:26 nakahiro Exp $
  1 +# $Id: cgi.pl,v 2.49 2000-06-22 13:08:24 nakahiro Exp $
2 2
3 3
4 4 # Small CGI tool package(use this with jcode.pl-2.0).
@@ -684,6 +684,9 @@ sub SecureHtmlEx
684 684 local( $srcString, $tag, $need, $feature, $markuped );
685 685
686 686 $string =~ s/\\>/__EscapedGt\377__/go;
  687 + $string =~ s/ ?/__HtmlNbsp\377__/go;
  688 + $string =~ s/©?/__HtmlCopy\377__/go;
  689 + $string =~ s/®?/__HtmlReg\377__/go;
687 690 $string =~ s/&?/__HtmlAmp\377__/go;
688 691 $string =~ s/"?/__HtmlQuote\377__/go;
689 692 $string =~ s/<?/__HtmlLt\377__/go;
@@ -741,6 +744,9 @@ sub SecureHtmlEx
741 744 $string =~ s/"/"/g;
742 745 $string =~ s/</&lt;/g;
743 746 $string =~ s/>/&gt;/g;
  747 + $string =~ s/__HtmlNbsp\377__/&nbsp;/go;
  748 + $string =~ s/__HtmlCopy\377__/&copy;/go;
  749 + $string =~ s/__HtmlReg\377__/&reg;/go;
744 750 $string =~ s/__HtmlAmp\377__/&amp;/go;
745 751 $string =~ s/__HtmlQuote\377__/&quot;/go;
746 752 $string =~ s/__HtmlLt\377__/&lt;/go;

0 comments on commit 2f684e1

Please sign in to comment.
Something went wrong with that request. Please try again.