[LON-CAPA-cvs] cvs: loncom /publisher loncfile.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 25 May 2005 22:27:19 -0000


albertel		Wed May 25 18:27:19 2005 EDT

  Modified files:              
    /loncom/publisher	loncfile.pm 
  Log:
  - need to grab the $1 value before it gets beaen up
  
  
Index: loncom/publisher/loncfile.pm
diff -u loncom/publisher/loncfile.pm:1.67 loncom/publisher/loncfile.pm:1.68
--- loncom/publisher/loncfile.pm:1.67	Thu Apr  7 02:56:24 2005
+++ loncom/publisher/loncfile.pm	Wed May 25 18:27:17 2005
@@ -9,7 +9,7 @@
 #  and displays a page showing the results of the action.
 #
 #
-# $Id: loncfile.pm,v 1.67 2005/04/07 06:56:24 albertel Exp $
+# $Id: loncfile.pm,v 1.68 2005/05/25 22:27:17 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1111,8 +1111,8 @@
 	$main=$2;		# Filename.
     }
     if($main=~m:\.(\w+)$:){ # Fixes problems with filenames with no extensions
-	$main=~s/\.\w+$//; #strip the extension
 	$suffix=$1; #This is the actually filename extension if it exists
+	$main=~s/\.\w+$//; #strip the extension
     }
     my $dest;                   # On success this is where we'll go.