Skip to content

Commit

Permalink
Trim presentation name before it is sent to the web server.
Browse files Browse the repository at this point in the history
  • Loading branch information
gugat committed Jan 10, 2012
1 parent 180d1ac commit b69d521
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
import mx.events.FlexEvent;
import mx.events.ValidationResultEvent;
import mx.managers.PopUpManager;
import mx.utils.*;
import mx.validators.*;
import org.bigbluebutton.common.Images;
import org.bigbluebutton.modules.present.events.RemovePresentationEvent;
Expand Down Expand Up @@ -160,7 +162,7 @@
enableControls();
displayAlert(ResourceUtil.getInstance().getString('bbb.presentation.maxUploadFileExceededAlert'));
} else {
var presentationName:String = fileToUpload.name
var presentationName:String = StringUtil.trim(fileToUpload.name);
LogUtil.debug("Uploading file : " + presentationName);
var filenamePattern:RegExp = /(.+)(\..+)/i;
Expand Down Expand Up @@ -336,4 +338,4 @@
<mx:Button id="okCancelBtn" label="{ResourceUtil.getInstance().getString('bbb.fileupload.okCancelBtn')}"
click="globalDispatch.dispatchEvent(new UploadEvent(UploadEvent.CLOSE_UPLOAD_WINDOW))"/>
</mx:ControlBar>
</mx:TitleWindow>
</mx:TitleWindow>

0 comments on commit b69d521

Please sign in to comment.