[Carbon-commits] [Carbon] svn commit r67526 - branches/carbon/3.0.0/components/human-task/org.wso2.carbon.human-task.ui/3.0.0/src/main/resources/web/humantask

waruna at wso2.com waruna at wso2.com
Thu Jun 3 04:26:02 PDT 2010


Author: waruna
Date: Thu Jun  3 04:26:02 2010
New Revision: 67526
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=67526

Log:
fix for https://wso2.org/jira/browse/CARBON-7554

Modified:
   branches/carbon/3.0.0/components/human-task/org.wso2.carbon.human-task.ui/3.0.0/src/main/resources/web/humantask/upload_hi.jsp

Modified: branches/carbon/3.0.0/components/human-task/org.wso2.carbon.human-task.ui/3.0.0/src/main/resources/web/humantask/upload_hi.jsp
URL: http://wso2.org/svn/browse/wso2/branches/carbon/3.0.0/components/human-task/org.wso2.carbon.human-task.ui/3.0.0/src/main/resources/web/humantask/upload_hi.jsp?rev=67526&r1=67525&r2=67526&view=diff
==============================================================================
--- branches/carbon/3.0.0/components/human-task/org.wso2.carbon.human-task.ui/3.0.0/src/main/resources/web/humantask/upload_hi.jsp	(original)
+++ branches/carbon/3.0.0/components/human-task/org.wso2.carbon.human-task.ui/3.0.0/src/main/resources/web/humantask/upload_hi.jsp	Thu Jun  3 04:26:02 2010
@@ -44,7 +44,17 @@
                             return false;
                         }
                         var regex = /[ \~\!\@\#\$\;\%\^\*\(\)\+\=\{\}\[\]\/\\|\<\>]+/gi;
-                        if (form.hiFileName.value.match(regex)) {
+
+                        var packageName = "";
+                        jQuery.each(jQuery.browser, function(i) {
+                          if(jQuery.browser.msie){
+                             packageName = form.hiFileName.value.substring(form.hiFileName.value.lastIndexOf("\\") + 1);
+                          }else{
+                             packageName = form.hiFileName.value;
+                          }
+                        });
+
+                        if (packageName.match(regex)) {
                             CARBON.showWarningDialog("<fmt:message key="invalid.hi"/>");
                             return false;
                         }



More information about the Carbon-commits mailing list