[LON-CAPA-cvs] cvs: rat / lonpage.pm
raeburn
raeburn@source.lon-capa.org
Fri, 19 Dec 2008 03:50:48 -0000
raeburn Fri Dec 19 03:50:48 2008 EDT
Modified files:
/rat lonpage.pm
Log:
- Regular Expressions for both http and https.
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.89 rat/lonpage.pm:1.90
--- rat/lonpage.pm:1.89 Thu Nov 20 15:19:05 2008
+++ rat/lonpage.pm Fri Dec 19 03:50:48 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Page Handler
#
-# $Id: lonpage.pm,v 1.89 2008/11/20 15:19:05 jms Exp $
+# $Id: lonpage.pm,v 1.90 2008/12/19 03:50:48 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -342,7 +342,7 @@
}
$thisdir=~s/\/[^\/]*$//;
foreach (@rlinks) {
- unless (($_=~/^http:\/\//i) ||
+ unless (($_=~/^https?:\/\//i) ||
($_=~/^\//) ||
($_=~/^javascript:/i) ||
($_=~/^mailto:/i) ||