[LON-CAPA-cvs] cvs: loncom(Refactoring) / lond
www
lon-capa-cvs@mail.lon-capa.org
Fri, 07 May 2004 17:57:18 -0000
www Fri May 7 13:57:18 2004 EDT
Modified files: (Branch: Refactoring)
/loncom lond
Log:
\Q\E-ing the variable in the regular expression
Index: loncom/lond
diff -u loncom/lond:1.178.2.22 loncom/lond:1.178.2.23
--- loncom/lond:1.178.2.22 Tue May 4 06:09:38 2004
+++ loncom/lond Fri May 7 13:57:18 2004
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.178.2.22 2004/05/04 10:09:38 foxr Exp $
+# $Id: lond,v 1.178.2.23 2004/05/07 17:57:18 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -53,7 +53,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.178.2.22 $'; #' stupid emacs
+my $VERSION='$Revision: 1.178.2.23 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid;
my $currentdomainid;
@@ -2252,7 +2252,7 @@
} else {
my $unescapeVal = &unescape($descr);
logthis("Matching with $unescapeVal");
- if (eval('$unescapeVal=~/$description/i')) {
+ if (eval('$unescapeVal=~/\Q$description\E/i')) {
logthis("Adding on match");
$qresult.="$key=$descr&";
}