jekyll 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jekyll might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49712197bbd449a1ccb1593b58772be181e0df1a
4
- data.tar.gz: 80f61cc61b7309db6e1dcc29ca833e833f72c233
3
+ metadata.gz: b4a712d90247fd73b3da0ce3c6755d73902432ca
4
+ data.tar.gz: c26a2cbe898e1e13a7dec7ccc5e7404c010e7ef7
5
5
  SHA512:
6
- metadata.gz: 698b36066f4d75677f9a2e1e33ef18f9609fac1de550b972f73f3eb16fbf1b082d5b51778a9a6d4ef089adee7355a18b259a002d290f8cb2813e7e6391057ff2
7
- data.tar.gz: 97bbe79b72ac0dafc6f7eb67e7cfaf1ce46eb4dd0e55971834312d8328ca717d2e56563f6fcf3cb9ab34170125f6bd2ff8d4a1ca92a26033f1d31af63d0bbbd7
6
+ metadata.gz: 8e072aa16ae430ece25c590b01672b37bed0f57fddf5ba7184b0b05d15887b788ebc841b4d3790df702568d62d770c3de7650c99947363b16fcbd60953ad4ac4
7
+ data.tar.gz: 5b2be2069d66a2445ea6e8aff70e4e9ede7096912729e5374ee8ab0d054378322a97a215a79246ef3f97ce7016b014ef5d83c659a162d429101dc34c39545424
@@ -141,9 +141,12 @@ module Jekyll
141
141
  #
142
142
  # Returns the sanitized path.
143
143
  def sanitized_path(base_directory, questionable_path)
144
+ return base_directory if base_directory.eql?(questionable_path)
145
+
144
146
  clean_path = File.expand_path(questionable_path, "/")
145
- clean_path.gsub!(/\A\w\:\//, '/')
146
- unless clean_path.start_with?(base_directory)
147
+ clean_path = clean_path.sub(/^\A\w\:\//, '/')
148
+
149
+ unless clean_path.start_with?(base_directory.sub(/^\A\w\:\//, '/'))
147
150
  File.join(base_directory, clean_path)
148
151
  else
149
152
  clean_path
@@ -1,3 +1,3 @@
1
1
  module Jekyll
2
- VERSION = '2.5.0'
2
+ VERSION = '2.5.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-06 00:00:00.000000000 Z
11
+ date: 2014-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid