[LON-CAPA-cvs] cvs: loncom /homework daxeopen.pm
raeburn
raeburn at source.lon-capa.org
Wed Aug 23 18:34:48 EDT 2023
raeburn Wed Aug 23 22:34:48 2023 EDT
Modified files:
/loncom/homework daxeopen.pm
Log:
- Coding style: eliminate leaning toothpicks.
Index: loncom/homework/daxeopen.pm
diff -u loncom/homework/daxeopen.pm:1.10 loncom/homework/daxeopen.pm:1.11
--- loncom/homework/daxeopen.pm:1.10 Wed Aug 23 22:25:48 2023
+++ loncom/homework/daxeopen.pm Wed Aug 23 22:34:48 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Opening converted problems and directory listings for Daxe
#
-# $Id: daxeopen.pm,v 1.10 2023/08/23 22:25:48 raeburn Exp $
+# $Id: daxeopen.pm,v 1.11 2023/08/23 22:34:48 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -108,7 +108,7 @@
$res .= "<directory name=\"/\">\n";
$res .= "<directory name=\"priv\"/>\n";
$res .= "<directory name=\"res\"/>\n";
- } elsif ($uri !~ /^\/(priv|res)\//) {
+ } elsif ($uri !~ m{^/(priv|res)/}) {
$request->content_type('text/plain');
$request->print(&mt('Not found: [_1]',$uri));
$request->status(404);
More information about the LON-CAPA-cvs
mailing list