dav4rack 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,7 +114,7 @@ module DAV4Rack
114
114
  resource.lock_check unless args.include?(:copy)
115
115
  destination = url_unescape(env['HTTP_DESTINATION'].sub(%r{https?://([^/]+)}, ''))
116
116
  dest_host = $1
117
- raise BadGateway if dest_host and dest_host != request.host
117
+ raise BadGateway if dest_host and dest_host.gsub(/:\d{2,5}$/,'') != request.host
118
118
  raise Forbidden if destination == resource.public_path
119
119
  dest = resource_class.new(destination, clean_path(destination), @request, @response, @options.merge(:user => resource.user))
120
120
  status = nil
@@ -1,3 +1,3 @@
1
1
  module DAV4Rack
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dav4rack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Roberts