Skip to content

Commit

Permalink
api: allow colons in mountpoint destination
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed Sep 19, 2018
1 parent f9fc4ce commit cd5d969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/models/mount.rb
Expand Up @@ -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

Expand Down

0 comments on commit cd5d969

Please sign in to comment.