[LON-CAPA-cvs] cvs: loncom /interface lonextresedit.pm
raeburn
raeburn at source.lon-capa.org
Mon Jan 6 07:52:45 EST 2014
raeburn Mon Jan 6 12:52:45 2014 EDT
Modified files:
/loncom/interface lonextresedit.pm
Log:
- Escape the title in javascript function setExternal().
- Remove some trailing whitespace.
Index: loncom/interface/lonextresedit.pm
diff -u loncom/interface/lonextresedit.pm:1.6 loncom/interface/lonextresedit.pm:1.7
--- loncom/interface/lonextresedit.pm:1.6 Tue May 21 18:57:40 2013
+++ loncom/interface/lonextresedit.pm Mon Jan 6 12:52:45 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: lonextresedit.pm,v 1.6 2013/05/21 18:57:40 raeburn Exp $
+# $Id: lonextresedit.pm,v 1.7 2014/01/06 12:52:45 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -59,9 +59,9 @@
my ($supplementalflag,$updated,$output,$errormsg,$residx,$url,$title,$symb);
if (($env{'form.folderpath'} =~ /^supplemental/) && ($env{'form.suppurl'})) {
$supplementalflag = 1;
- }
+ }
if (($supplementalflag) || ($env{'form.symb'} =~ /^uploaded/)) {
- ($updated,$output,$errormsg,$residx,$url,$title,$symb) =
+ ($updated,$output,$errormsg,$residx,$url,$title,$symb) =
&process_changes($supplementalflag,$cdom,$cnum,$chome);
if ($supplementalflag) {
if ($url ne $env{'form.suppurl'}) {
@@ -346,6 +346,7 @@
}
if (regexp.test(url)) {
url = escape(url);
+ title = escape(title);
if (residx > 0) {
eval("extform.importdetail.value=title+'='+url+'='+residx;extform.submit();");
} else {
More information about the LON-CAPA-cvs
mailing list