[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 06 Jun 2005 01:29:45 -0000
albertel Sun Jun 5 21:29:45 2005 EDT
Modified files:
/loncom/xml scripttag.pm
Log:
- BUG#2375 \ was not being probalby protexteced from javva script
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.127 loncom/xml/scripttag.pm:1.128
--- loncom/xml/scripttag.pm:1.127 Sun Jun 5 03:28:31 2005
+++ loncom/xml/scripttag.pm Sun Jun 5 21:29:45 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# <script> definiton
#
-# $Id: scripttag.pm,v 1.127 2005/06/05 07:28:31 albertel Exp $
+# $Id: scripttag.pm,v 1.128 2005/06/06 01:29:45 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -122,9 +122,8 @@
// <![CDATA[
function LONCAPA_scriptvars_".$uname."_".$udom."_"."$Apache::lonxml::curdepth() {newWindow=open('','new_W','width=500,height=500,scrollbars=1,resizable=yes');newWindow.$windowopen;newWindow.document.writeln('<html><head><title>Script Vars</title></head><body bgcolor=\"#FFFFFF\"><pre>";
my $listing=&Apache::run::dump($target,$safeeval);
+ $listing=~s/\\/\\\\/g;
$listing=~s/\'/\\\'/g;
- $listing=~s/\n/\\n/g;
- $listing=~s/\r/\\r/g;
$result.=$listing;
$result.= "</pre></body></html>');newWindow.document.close();newWindow.focus()}
// ]]>