[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
raeburn
raeburn at source.lon-capa.org
Sun Dec 30 14:53:35 EST 2018
raeburn Sun Dec 30 19:53:35 2018 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
- Only call lonenc::check_encrypt() if there's something to encrypt.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.666 loncom/interface/lonprintout.pm:1.667
--- loncom/interface/lonprintout.pm:1.666 Sat Dec 29 23:24:40 2018
+++ loncom/interface/lonprintout.pm Sun Dec 30 19:53:34 2018
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.666 2018/12/29 23:24:40 raeburn Exp $
+# $Id: lonprintout.pm,v 1.667 2018/12/30 19:53:34 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4081,10 +4081,11 @@
}
if ($env{'form.url'}) {
$helper->{VARS}->{'symb'} = &Apache::lonnet::symbread($helper->{VARS}->{'postdata'});
-
}
- $helper->{VARS}->{'symb'}=
- &Apache::lonenc::check_encrypt($helper->{VARS}->{'symb'});
+ if ($helper->{VARS}->{'symb'} ne '') {
+ $helper->{VARS}->{'symb'}=
+ &Apache::lonenc::check_encrypt($helper->{VARS}->{'symb'});
+ }
my ($resourceTitle,$sequenceTitle,$mapTitle) = &details_for_menu($helper);
if ($sequenceTitle ne '') {$helper->{VARS}->{'assignment'}=$sequenceTitle;}
More information about the LON-CAPA-cvs
mailing list