admin_data 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,9 +2,9 @@ module AdminData
2
2
  class PublicController < ApplicationController
3
3
 
4
4
  def serve
5
- path = File.join(AdminData.public_dir,params[:file]))
5
+ path = File.join(AdminData.public_dir,params[:file])
6
6
 
7
- unless File.expanded_path(path) =~ /admin_data/
7
+ unless File.expand_path(path) =~ /admin_data/
8
8
  render :nothing => true, :status => 404 and return
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module AdminData
2
- VERSION = '1.1.5'
2
+ VERSION = '1.1.6'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_data
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 5
10
- version: 1.1.5
9
+ - 6
10
+ version: 1.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Neeraj Singh