[LON-CAPA-cvs] cvs: rat / lonuserstate.pm
raeburn
raeburn@source.lon-capa.org
Fri, 19 Dec 2008 03:58:24 -0000
raeburn Fri Dec 19 03:58:24 2008 EDT
Modified files:
/rat lonuserstate.pm
Log:
- Regular Expression for both http and https.
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.129 rat/lonuserstate.pm:1.130
--- rat/lonuserstate.pm:1.129 Tue Nov 18 19:13:37 2008
+++ rat/lonuserstate.pm Fri Dec 19 03:58:24 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construct and maintain state and binary representation of course for user
#
-# $Id: lonuserstate.pm,v 1.129 2008/11/18 19:13:37 jms Exp $
+# $Id: lonuserstate.pm,v 1.130 2008/12/19 03:58:24 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -247,7 +247,7 @@
$turi=~/\.(\w+)$/;
my $embstyle=&Apache::loncommon::fileembstyle($1);
if ($token->[2]->{'external'} eq 'true') { # external
- $turi=~s/^http\:\/\//\/adm\/wrapper\/ext\//;
+ $turi=~s/^https?\:\/\//\/adm\/wrapper\/ext\//;
} elsif ($turi=~/^\/*uploaded\//) { # uploaded
if (($embstyle eq 'img')
|| ($embstyle eq 'emb')