[LON-CAPA-cvs] cvs: rat /client code.html

www lon-capa-cvs@mail.lon-capa.org
Mon, 24 Jun 2002 14:02:54 -0000


www		Mon Jun 24 10:02:54 2002 EDT

  Modified files:              
    /rat/client	code.html 
  Log:
  Bug 487
  Escape quotation marks in resources titles before output to input field
  in little window.
  
  
Index: rat/client/code.html
diff -u rat/client/code.html:1.58 rat/client/code.html:1.59
--- rat/client/code.html:1.58	Sat May 25 16:32:10 2002
+++ rat/client/code.html	Mon Jun 24 10:02:54 2002
@@ -4,7 +4,7 @@
 The LearningOnline Network
 Resource Assembly Tool
 //
-// $Id: code.html,v 1.58 2002/05/25 20:32:10 www Exp $
+// $Id: code.html,v 1.59 2002/06/24 14:02:54 www Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -1803,7 +1803,7 @@
         inf.document.write(
          '<form name=resinfo><table><tr><td>Title:</td><td colspan=2>'
         +'<input type=text name=t size=30 value="'
-        +data2[0]+'"><input type=hidden name=h value='+data2[3]+'></td></tr>');
++escape(data2[0])+'"><input type=hidden name=h value='+data2[3]+'></td></tr>');
            inf.document.write('<tr><td>URL:</td><td colspan=2>'
         +'<input type=text name=u size=30 value="'+data2[1]+'"></td></tr>'
         +'<tr><td>External:</td><td><input type=checkbox name=e');