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

droeschl droeschl at source.lon-capa.org
Wed Oct 15 03:24:44 EDT 2014


droeschl		Wed Oct 15 07:24:44 2014 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  BZ #6752: fix multiple cut/remove functionality for uploaded files with no explicit name.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.585 loncom/interface/londocs.pm:1.586
--- loncom/interface/londocs.pm:1.585	Tue Oct 14 21:01:23 2014
+++ loncom/interface/londocs.pm	Wed Oct 15 07:24:43 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.585 2014/10/14 21:01:23 raeburn Exp $
+# $Id: londocs.pm,v 1.586 2014/10/15 07:24:43 droeschl Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2810,7 +2810,7 @@
                     my ($name,$url)=split(/\:/,$LONCAPA::map::resources[$res]);
                     $name=&LONCAPA::map::qtescape($name);
                     $url=&LONCAPA::map::qtescape($url);
-                    next unless ($name && $url);
+                    next unless $url;
                     my %denied =
                         &action_restrictions($coursenum,$coursedom,$url,
                                              $env{'form.folderpath'},\%curr_groups);




More information about the LON-CAPA-cvs mailing list