[LON-CAPA-cvs] cvs: loncom /interface lonpdfupload.pm
bisitz
bisitz at source.lon-capa.org
Wed Nov 2 11:14:21 EDT 2011
bisitz Wed Nov 2 15:14:21 2011 EDT
Modified files:
/loncom/interface lonpdfupload.pm
Log:
Ignore case in check for valid PDF file extension
Index: loncom/interface/lonpdfupload.pm
diff -u loncom/interface/lonpdfupload.pm:1.20 loncom/interface/lonpdfupload.pm:1.21
--- loncom/interface/lonpdfupload.pm:1.20 Mon Mar 22 15:39:37 2010
+++ loncom/interface/lonpdfupload.pm Wed Nov 2 15:14:21 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# PDF Form Upload Handler
#
-# $Id: lonpdfupload.pm,v 1.20 2010/03/22 15:39:37 onken Exp $
+# $Id: lonpdfupload.pm,v 1.21 2011/11/02 15:14:21 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -130,7 +130,7 @@
// <![CDATA[
function checkFilename(form) {
var fileExt = form.file.value;
- fileExt = fileExt.match(/[.]pdf\$/g);
+ fileExt = fileExt.match(/[.]pdf\$/gi);
if(fileExt) {
return true;
}
More information about the LON-CAPA-cvs
mailing list