From ea641d2e4765ba157dda42f372c44c2ab84b8c76 Mon Sep 17 00:00:00 2001 From: "kestes%staff.mail.com" Date: Fri, 22 Sep 2000 15:03:03 +0000 Subject: [PATCH] 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 --- mozilla/webtools/tinderbox2/src/lib/HTMLPopUp.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/tinderbox2/src/lib/HTMLPopUp.pm b/mozilla/webtools/tinderbox2/src/lib/HTMLPopUp.pm index 2dce770231d..c8beb01c6d2 100644 --- a/mozilla/webtools/tinderbox2/src/lib/HTMLPopUp.pm +++ b/mozilla/webtools/tinderbox2/src/lib/HTMLPopUp.pm @@ -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/