[LON-CAPA-cvs] cvs: rat /client extpickcode.html
www
lon-capa-cvs@mail.lon-capa.org
Wed, 26 Feb 2003 20:30:44 -0000
www Wed Feb 26 15:30:44 2003 EDT
Modified files:
/rat/client extpickcode.html
Log:
Bug #1238 - escape external URL to enable GET parms to be passed along
Index: rat/client/extpickcode.html
diff -u rat/client/extpickcode.html:1.3 rat/client/extpickcode.html:1.4
--- rat/client/extpickcode.html:1.3 Fri Sep 13 15:05:10 2002
+++ rat/client/extpickcode.html Wed Feb 26 15:30:44 2003
@@ -4,7 +4,7 @@
The LearningOnline Network
Pick External Resources
//
-// $Id: extpickcode.html,v 1.3 2002/09/13 19:05:10 www Exp $
+// $Id: extpickcode.html,v 1.4 2003/02/26 20:30:44 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -35,7 +35,7 @@
<table>
<tr><td bgcolor="#FFFF99">
<input type="button" name="cancel" value="Choose"
-onClick="javascript:parent.opener.document.forms.extimport.title.value=this.form.exttitle.value;parent.opener.document.forms.extimport.url.value=this.form.exturl.value;parent.opener.finishpick();parent.close();" /></td>
+onClick="javascript:parent.opener.document.forms.extimport.title.value=this.form.exttitle.value;parent.opener.document.forms.extimport.url.value=escape(this.form.exturl.value);parent.opener.finishpick();parent.close();" /></td>
<td>Title:</td>
<td><input type="text" size="60" name="exttitle" value="External Resource" />
</td></tr>