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 +4 -4
- data/lib/jekyll.rb +5 -2
- data/lib/jekyll/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4a712d90247fd73b3da0ce3c6755d73902432ca
|
4
|
+
data.tar.gz: c26a2cbe898e1e13a7dec7ccc5e7404c010e7ef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e072aa16ae430ece25c590b01672b37bed0f57fddf5ba7184b0b05d15887b788ebc841b4d3790df702568d62d770c3de7650c99947363b16fcbd60953ad4ac4
|
7
|
+
data.tar.gz: 5b2be2069d66a2445ea6e8aff70e4e9ede7096912729e5374ee8ab0d054378322a97a215a79246ef3f97ce7016b014ef5d83c659a162d429101dc34c39545424
|
data/lib/jekyll.rb
CHANGED
@@ -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.
|
146
|
-
|
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
|
data/lib/jekyll/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|