Author: andrei_exadel
Date: 2008-04-04 09:05:32 -0400 (Fri, 04 Apr 2008)
New Revision: 7607
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-2961
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-04-04
12:53:05 UTC (rev 7606)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-04-04
13:05:32 UTC (rev 7607)
@@ -124,7 +124,8 @@
this.fileInput = fileInput;
this.uploadObject = uploadObject;
- var content = FileUploadEntry.template.invoke('getContent', {fileName:
$F(this.fileInput), fileEntryWidth: uploadObject.getFileEntryWidth(), className :
this.uploadObject.classes.FILE_ENTRY.ENABLED }).join('');
+ var fileName = JSNode.prototype.xmlEscape($F(this.fileInput));
+ var content = FileUploadEntry.template.invoke('getContent', {fileName:
fileName, fileEntryWidth: uploadObject.getFileEntryWidth(), className :
this.uploadObject.classes.FILE_ENTRY.ENABLED }).join('');
Element.insert(this.uploadObject.items, content);
Show replies by date