JBoss Rich Faces SVN: r12785 - in trunk/ui/fileUpload/src/main: flash/src and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2009-03-02 09:24:56 -0500 (Mon, 02 Mar 2009)
New Revision: 12785
Modified:
trunk/ui/fileUpload/src/main/flash/bin/FileUploadComponent.swf
trunk/ui/fileUpload/src/main/flash/src/FileUploadComponent.as
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/swf/FileUploadComponent.swf
Log:
https://jira.jboss.org/jira/browse/RF-6418
Modified: trunk/ui/fileUpload/src/main/flash/bin/FileUploadComponent.swf
===================================================================
(Binary files differ)
Modified: trunk/ui/fileUpload/src/main/flash/src/FileUploadComponent.as
===================================================================
--- trunk/ui/fileUpload/src/main/flash/src/FileUploadComponent.as 2009-03-02 14:19:04 UTC (rev 12784)
+++ trunk/ui/fileUpload/src/main/flash/src/FileUploadComponent.as 2009-03-02 14:24:56 UTC (rev 12785)
@@ -111,7 +111,7 @@
}
item.addListener(this);
this.fileRefList.push(item);
- this.fileDataList.push("{creationDate: "+this.getJSDateString(item.creationDate)+", creator: '"+item.creator+"', modificationDate: "+this.getJSDateString(item.modificationDate)+", name: '"+item.name+"', size: "+item.size+", type: '"+item.type+"'}");
+ this.fileDataList.push("{creationDate: "+this.getJSDateString(item.creationDate)+", creator: '"+item.creator+"', modificationDate: "+this.getJSDateString(item.modificationDate)+", name: '"+escapeString(item.name)+"', size: "+item.size+", type: '"+item.type+"'}");
}
ExternalInterface.call(this.getComponentString()+"._flashAdd(["+this.fileDataList.join(",")+"])");
}
@@ -175,6 +175,11 @@
return result;
}
+ private function escapeString(str:String)
+ {
+ return str.split("'").join("\\'").split("\"").join("\\\"");
+ }
+
private function jstrace (msg: String)
{
ExternalInterface.call("FlashFileUpload.ASTrace", msg);
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/swf/FileUploadComponent.swf
===================================================================
(Binary files differ)
15 years, 10 months