lockdown 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lockdown.rb +1 -1
- data/lib/lockdown/frameworks/rails/controller.rb +5 -0
- metadata +2 -2
data/lib/lockdown.rb
CHANGED
@@ -80,8 +80,13 @@ module Lockdown
|
|
80
80
|
# continue on
|
81
81
|
end
|
82
82
|
|
83
|
+
# Mailto link
|
83
84
|
return true if url =~ /^mailto:/
|
84
85
|
|
86
|
+
# Public file
|
87
|
+
file = File.join(RAILS_ROOT, 'public', url)
|
88
|
+
return true if File.exists?(file)
|
89
|
+
|
85
90
|
# Passing in different domain
|
86
91
|
return remote_url?(url_parts[2])
|
87
92
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Stone
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-07 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|