--- loncom/interface/lonextresedit.pm 2013/05/21 18:57:40 1.6 +++ loncom/interface/lonextresedit.pm 2014/01/06 12:52:45 1.7 @@ -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 @@ sub handler { 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 @@ function setExternal(extform,residx) { } if (regexp.test(url)) { url = escape(url); + title = escape(title); if (residx > 0) { eval("extform.importdetail.value=title+'='+url+'='+residx;extform.submit();"); } else {