Permalink
Browse files

api: allow colons in mountpoint destination

  • Loading branch information...
aither64 committed Sep 19, 2018
1 parent f9fc4ce commit cd5d96931b10aa9b3814980f1df9dae3734d6ea8
Showing with 1 addition and 1 deletion.
  1. +1 −1 api/models/mount.rb
View
@@ -21,7 +21,7 @@ def check_mountpoint
dst.insert(0, '/') unless dst.start_with?('/')
dst.chop! while dst.end_with?('/')
if dst !~ /\A[a-zA-Z0-9_\-\/\.]{3,500}\z/ || dst =~ /\.\./ || dst =~ /\/\//
if dst !~ /\A[a-zA-Z0-9_\-\/\.:]{3,500}\z/ || dst =~ /\.\./ || dst =~ /\/\//
errors.add(:dst, 'invalid format')
end

0 comments on commit cd5d969

Please sign in to comment.