[LON-CAPA-cvs] cvs: loncom / lond
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 27 Jun 2005 22:32:39 -0000
albertel Mon Jun 27 18:32:39 2005 EDT
Modified files:
/loncom lond
Log:
- remove some excess whitesapce,
- slap a \Q \E around the var in the re, domains are clean now but...
Index: loncom/lond
diff -u loncom/lond:1.288 loncom/lond:1.289
--- loncom/lond:1.288 Mon Jun 27 10:16:30 2005
+++ loncom/lond Mon Jun 27 18:32:37 2005
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.288 2005/06/27 14:16:30 albertel Exp $
+# $Id: lond,v 1.289 2005/06/27 22:32:37 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -58,7 +58,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.288 $'; #' stupid emacs
+my $VERSION='$Revision: 1.289 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -5067,16 +5067,13 @@
# user - Name of the user for which the role is being put.
# authtype - The authentication type associated with the user.
#
-sub manage_permissions
-{
-
-
+sub manage_permissions {
my ($request, $domain, $user, $authtype) = @_;
&Debug("manage_permissions: $request $domain $user $authtype");
# See if the request is of the form /$domain/_au
- if($request =~ /^(\/$domain\/_au)$/) { # It's an author rolesput...
+ if($request =~ /^(\/\Q$domain\E\/_au)$/) { # It's an author rolesput...
my $execdir = $perlvar{'lonDaemons'};
my $userhome= "/home/$user" ;
&logthis("system $execdir/lchtmldir $userhome $user $authtype");