← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 592: Fix a crash when exporting a video, if the filename contains a folder separator character ("/").

 

------------------------------------------------------------
revno: 592
fixes bug: https://launchpad.net/bugs/865114
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Tue 2011-10-18 21:41:33 +0100
message:
  Fix a crash when exporting a video, if the filename contains a folder separator character ("/").
modified:
  openshot/windows/ExportVideo.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/ExportVideo.py'
--- openshot/windows/ExportVideo.py	2011-07-16 11:50:10 +0000
+++ openshot/windows/ExportVideo.py	2011-10-18 20:41:33 +0000
@@ -610,6 +610,8 @@
 		# get correct gettext method
 		_ = self._
 		
+		
+		
 		# determine if we are UPLOADING or EXPORTING		
 		export_type = self.cboExportType.get_active_text()
 		if export_type == _("Upload to Web"):
@@ -621,6 +623,9 @@
 			localfileExportFolder = str.strip(self.fileExportFolder.get_filename())
 			localtxtFileName = str.strip(self.txtFileName.get_text())
 		
+		# replace any directory separator characters from the filename
+		localtxtFileName = localtxtFileName.replace('/', '_')
+			
 		# Get general settings
 		localcboExportTo = self.cboExportTo.get_active_text()