Opened 3 years ago

Last modified 23 months ago

#13070 new defect

dojox.form.uploader.plugins.Flash given URL cannot include several parameters

Reported by: mathewrapid Owned by: mwilcox
Priority: high Milestone: tbd
Component: DojoX Uploader Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

Description

dojox.form.uploader.plugins.Flash
From line 238

_createFlashUploader: function(){
	// summary:
	//		Internal. Creates Flash Uploader
	//
	var url = this.getUrl();
	if(url){
		if(url.toLowerCase().indexOf("http")<0 && url.indexOf("/")!=0){
			// Appears to be a relative path. Attempt to
			//	convert it to absolute, so it will better
			//target the SWF.
			//
			var loc = window.location.href.split("/");
			loc.pop();
			loc = loc.join("/")+"/";
			url = loc+url;
		}
	}else{
		console.warn("Warning: no uploadUrl provided.");
	}

Should include

url = encodeURIComponent(url);

Change History (1)

comment:1 Changed 23 months ago by bill

  • Component changed from General to DojoX Uploader
  • Owner set to mwilcox
Note: See TracTickets for help on using tickets.