[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm

raeburn raeburn at source.lon-capa.org
Tue Aug 15 17:02:40 EDT 2017


raeburn		Tue Aug 15 21:02:40 2017 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Sanity checking.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.307 loncom/interface/domainprefs.pm:1.308
--- loncom/interface/domainprefs.pm:1.307	Tue Aug 15 21:01:06 2017
+++ loncom/interface/domainprefs.pm	Tue Aug 15 21:02:40 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.307 2017/08/15 21:01:06 raeburn Exp $
+# $Id: domainprefs.pm,v 1.308 2017/08/15 21:02:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -9959,6 +9959,7 @@
         my $maxnum = $env{'form.ltitools_maxnum'};
         for (my $i=0; $i<=$maxnum; $i++) {
             my $itemid = $env{'form.ltitools_id_'.$i};
+            $itemid =~ s/\D+//g;
             if (ref($domconfig{$action}{$itemid}) eq 'HASH') {
                 if ($deletions{$itemid}) {
                     if ($domconfig{$action}{$itemid}{'image'}) {




More information about the LON-CAPA-cvs mailing list