[LON-CAPA-cvs] cvs: loncom / lonhttpd
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 01 May 2008 14:36:06 -0000
raeburn Thu May 1 10:36:06 2008 EDT
Modified files:
/loncom lonhttpd
Log:
- Allow lonhttpd lightweight httpd to server a replacement image i(if DC uploaded one) for default "User Authentication" image on log-in page.
Index: loncom/lonhttpd
diff -u loncom/lonhttpd:1.15 loncom/lonhttpd:1.16
--- loncom/lonhttpd:1.15 Wed Jul 11 14:48:20 2007
+++ loncom/lonhttpd Thu May 1 10:36:03 2008
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: lonhttpd,v 1.15 2007/07/11 18:48:20 albertel Exp $
+# $Id: lonhttpd,v 1.16 2008/05/01 14:36:03 raeburn Exp $
$VERSION = "1.3.2 (Demonic/Linux/LON-CAPA Derivative $Revison$)";
@@ -356,7 +356,7 @@
$address=~s/\/+/\//g;
if ($address=~/^\/(status|adm\/|res\/adm\/)/) {
$fail = 0;
- } elsif ($address =~ /^\/res\/([\w\.\-]+)\/\1\-domainconfig\/(logo|domlogo|img)\/[^\/]+$/) {
+ } elsif ($address =~ /^\/res\/([\w\.\-]+)\/\1\-domainconfig\/(logo|domlogo|img|login)\/[^\/]+$/) {
$fail = 0;
}
#