Skip to content

Commit

Permalink
Merge pull request #296 from legal90/fix-synced-folder-id
Browse files Browse the repository at this point in the history
Escape backward slashes in synced folder id
  • Loading branch information
romankulikov authored Apr 10, 2017
2 parents 648f40f + 766b97c commit 68e455f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vagrant-parallels/synced_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def driver(machine)
end

def os_friendly_id(id)
id.gsub(/[\/:]/,'_').sub(/^_/, '')
# Replace chars *, ", :, <, >, ?, |, /, \
id.gsub(/[*":<>?|\/\\]/,'_').sub(/^_/, '')
end
end
end
Expand Down

0 comments on commit 68e455f

Please # to comment.