[LON-CAPA-cvs] cvs: loncom / lontrans.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 30 Sep 2002 20:48:24 -0000


matthew		Mon Sep 30 16:48:24 2002 EDT

  Modified files:              
    /loncom	lontrans.pm 
  Log:
  Winning the commit war can be achieved by making minor changes to other
  programmers code as well as your own.
  Death to $dum1 & $dum2 !!!  Long live undef!
  
  
Index: loncom/lontrans.pm
diff -u loncom/lontrans.pm:1.3 loncom/lontrans.pm:1.4
--- loncom/lontrans.pm:1.3	Mon Sep 30 16:32:45 2002
+++ loncom/lontrans.pm	Mon Sep 30 16:48:24 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # URL translation for User Files
 #
-# $Id: lontrans.pm,v 1.3 2002/09/30 20:32:45 albertel Exp $
+# $Id: lontrans.pm,v 1.4 2002/09/30 20:48:24 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -47,7 +47,7 @@
 sub handler {
     my $r = shift;
     if ($r->uri=~m|^/uploaded/|) {
-	my ($dum1,$dum2,$udom,$uname,$ufile)=split(/\//,$r->uri);
+	my (undef,undef,$udom,$uname,$ufile)=split(/\//,$r->uri);
 	$ufile=~s/^[\~\.]+//;
 	$r->filename(&propath($udom,$uname).'/userfiles/'.$ufile);
     } elsif ($r->uri=~m|^/~|) {