Avoid circumvention of metadata name checking

See https://github.com/getpelican/pelican/issues/2011
This commit is contained in:
Li Jiapeng 2016-09-19 18:26:16 +08:00
commit 9185e0b7a8

View file

@ -666,8 +666,8 @@ def parse_path_metadata(source_path, settings=None, process=None):
if match:
# .items() for py3k compat.
for k, v in match.groupdict().items():
k = k.lower() # metadata must be lowercase
if k not in metadata:
k = k.lower() # metadata must be lowercase
if process:
v = process(k, v)
metadata[k] = v