[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
raeburn
raeburn at source.lon-capa.org
Thu Jul 13 17:25:28 EDT 2017
raeburn Thu Jul 13 21:25:28 2017 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
- Link to param setting from Course Contents screen needs entity encoding
for single quote(s) for case where resource URL contains a single quote.
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.386 loncom/interface/lonhtmlcommon.pm:1.387
--- loncom/interface/lonhtmlcommon.pm:1.386 Mon May 8 14:20:20 2017
+++ loncom/interface/lonhtmlcommon.pm Thu Jul 13 21:25:28 2017
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.386 2017/05/08 14:20:20 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.387 2017/07/13 21:25:28 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -92,7 +92,7 @@
sub entity_encode {
my ($text)=@_;
- return &HTML::Entities::encode($text, '<>&"');
+ return &HTML::Entities::encode($text, '\'<>&"');
}
sub direct_parm_link {
More information about the LON-CAPA-cvs
mailing list