modify escapeHTML() to escape the "'" as well as standard characters,
so that my popup windows code do not see a "'" in their input as this confuses them. (It does not help the popup but seems like a good idea to leave in.) git-svn-id: svn://10.0.0.236/trunk@79893 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
# the completed string before it is returned.
|
||||
|
||||
|
||||
# $Revision: 1.2 $
|
||||
# $Date: 2000-08-11 00:25:35 $
|
||||
# $Revision: 1.3 $
|
||||
# $Date: 2000-09-22 15:03:03 $
|
||||
# $Author: kestes%staff.mail.com $
|
||||
# $Source: /home/befator/cvs/jail/cvsroot/mozilla/webtools/tinderbox2/src/lib/HTMLPopUp.pm,v $
|
||||
# $Name: not supported by cvs2svn $
|
||||
@@ -190,6 +190,8 @@ sub split_cgi_args {
|
||||
# I added the URL to the end of the functions named: escapeURL,
|
||||
# unescapeURL for clarity.
|
||||
|
||||
# I modified escapeHTML() to escape the "'" as well so that my popup
|
||||
# windows code do not see a "'" in their input as this confuses them.
|
||||
|
||||
|
||||
# Escape HTML
|
||||
@@ -201,6 +203,7 @@ sub escapeHTML {
|
||||
|
||||
$toencode=~s/&/&/g;
|
||||
$toencode=~s/\"/"/g;
|
||||
$toencode=~s/\'/&\#039;/g;
|
||||
$toencode=~s/>/>/g;
|
||||
$toencode=~s/</</g;
|
||||
return $toencode;
|
||||
|
||||
Reference in New Issue
Block a user