[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Fri Nov 30 11:46:58 EST 2012
raeburn Fri Nov 30 16:46:58 2012 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- &symbverify() - eliminate unnecessary operations within loop.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1201 loncom/lonnet/perl/lonnet.pm:1.1202
--- loncom/lonnet/perl/lonnet.pm:1.1201 Thu Nov 29 20:37:19 2012
+++ loncom/lonnet/perl/lonnet.pm Fri Nov 30 16:46:58 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1201 2012/11/29 20:37:19 raeburn Exp $
+# $Id: lonnet.pm,v 1.1202 2012/11/30 16:46:58 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -10514,11 +10514,11 @@
}
if ($ids) {
# ------------------------------------------------------------------- Has ID(s)
+ if ($thisfn =~ m{^/adm/wrapper/ext/}) {
+ symb =~ s/\?.+$//;
+ }
foreach my $id (split(/\,/,$ids)) {
my ($mapid,$resid)=split(/\./,$id);
- if ($thisfn =~ m{^/adm/wrapper/ext/}) {
- $symb =~ s/\?.+$//;
- }
if (
&symbclean(&declutter($bighash{'map_id_'.$mapid}).'___'.$resid.'___'.$thisfn)
eq $symb) {
@@ -10529,6 +10529,7 @@
($bighash{'encrypted_'.$id} eq $env{'request.enc'}) ||
($thisurl eq '/adm/navmaps')) {
$okay=1;
+ last;
}
}
}
More information about the LON-CAPA-cvs
mailing list