[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm
raeburn
raeburn at source.lon-capa.org
Sun Jan 27 21:00:58 EST 2013
raeburn Mon Jan 28 02:00:58 2013 EDT
Modified files:
/loncom/auth lonlogin.pm
Log:
- Remove any characters excluded in domain names from value for codedom
added to query string for "Contact Helpdesk".
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.154 loncom/auth/lonlogin.pm:1.155
--- loncom/auth/lonlogin.pm:1.154 Wed Jan 23 15:26:37 2013
+++ loncom/auth/lonlogin.pm Mon Jan 28 02:00:58 2013
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.154 2013/01/23 15:26:37 raeburn Exp $
+# $Id: lonlogin.pm,v 1.155 2013/01/28 02:00:58 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -654,7 +654,8 @@
<script type="text/javascript">
// <![CDATA[
function helpdesk() {
- var codedom = document.client.udom.value;
+ var possdom = document.client.udom.value;
+ var codedom = possdom.replace( new RegExp("[^A-Za-z0-9.\\-]","g"),'');
if (codedom == '') {
codedom = "$authdomain";
}
More information about the LON-CAPA-cvs
mailing list