Convertible#validate_permalink!: ensure the return value of data["permalink"] is a string before asking if it is empty
This commit is contained in:
parent
98e19c3cf5
commit
5bc67c1fb7
|
@ -69,7 +69,7 @@ module Jekyll
|
|||
end
|
||||
|
||||
def validate_permalink!(filename)
|
||||
if self.data["permalink"] && self.data["permalink"].empty?
|
||||
if self.data["permalink"] && self.data["permalink"].to_s.empty?
|
||||
raise Errors::InvalidPermalinkError, "Invalid permalink in #{filename}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue