obf 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/utils.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef8367072fd8152240b77c218078b47a113c9af770dcf7c2f1cac8aa958cc35a
4
- data.tar.gz: 82cf17375666097b9a38c4d3e22b657924592a12c3b568b8869e2bdecdfe5ce8
3
+ metadata.gz: 9f21c1741609ab5a150ffab5391f8a74025f774ed4d2f6f91059cc5bfeedc79b
4
+ data.tar.gz: 252aa9db156ce015579129c70711e602407ccdb6e9a65cb68f177ecc550a2e41
5
5
  SHA512:
6
- metadata.gz: 332b2f7f42277f916a88d44777859bd0864b038e60bed05d8f61128829f37c52726067cc3cee27830c5914011fbec9dd8a6f0ef0629be2d003ebe2af1ef69f6c
7
- data.tar.gz: e293cef7f4d072a00175c84cefb32f66d741c23c9d94c413065669a447879dcffe4bb2d5ea1ea2835f2174d0264cbcaf4b0373e13bde0b4b100de25a550d3bef
6
+ metadata.gz: ff7fbbb100eda89a6c02439ed5753ee7636a84444065da561d0e9c17d25b5912d810cabb780d8cdd66f70e337a65562bfb5188d77225316eb334ebb63c765264
7
+ data.tar.gz: 51f73c99c3f25269185614b1d0a25d96ae19ef94973692f8b7ba0b46a192bb36dd7eaf420513fc70de74522470f89b0cbb7689a6a33150d06d6b97fdf587cc2e
@@ -32,7 +32,7 @@ module OBF::Utils
32
32
 
33
33
  def self.sanitize_url(url)
34
34
  uri = URI.parse(url) rescue nil
35
- return nil unless uri
35
+ return nil unless uri && uri.host
36
36
  return nil if (!defined?(Rails) || !Rails.env.development?) && (uri.host.match(/^127/) || uri.host.match(/localhost/) || uri.host.match(/^0/) || uri.host.to_s == uri.host.to_i.to_s)
37
37
  port_suffix = ""
38
38
  port_suffix = ":#{uri.port}" if (uri.scheme == 'http' && uri.port != 80)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-19 00:00:00.000000000 Z
11
+ date: 2019-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json