[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Sun Sep 2 12:18:25 EDT 2012
raeburn Sun Sep 2 16:18:25 2012 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Access to versioning information for published content which requires wrapping
(e.g., PDFs).
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1188 loncom/lonnet/perl/lonnet.pm:1.1189
--- loncom/lonnet/perl/lonnet.pm:1.1188 Mon Aug 27 14:33:24 2012
+++ loncom/lonnet/perl/lonnet.pm Sun Sep 2 16:18:24 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1188 2012/08/27 14:33:24 raeburn Exp $
+# $Id: lonnet.pm,v 1.1189 2012/09/02 16:18:24 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2406,7 +2406,7 @@
sub getversion {
my $fname=&clutter(shift);
- unless ($fname=~/^\/res\//) { return -1; }
+ unless ($fname=~m{^(/adm/wrapper|)/res/}) { return -1; }
return ¤tversion(&filelocation('',$fname));
}
More information about the LON-CAPA-cvs
mailing list