Skip to content

Commit

Permalink
Merge pull request #1644 from janezd/remove-illegal-chars-shema
Browse files Browse the repository at this point in the history
[FIX] Canvas: Replace illegal file-name characters with _ when saving workf…
  • Loading branch information
astaric authored Oct 7, 2016
2 parents e3eb918 + a11a634 commit e0807a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Orange/canvas/application/canvasmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,8 @@ def save_scheme_as(self):
document = self.current_document()
curr_scheme = document.scheme()
title = curr_scheme.title or "untitled"
for illegal in r'<>:"\/|?*\0':
title = title.replace(illegal, '_')

if document.path():
start_dir = document.path()
Expand Down

0 comments on commit e0807a2

Please sign in to comment.