mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Avoid circumvention of metadata name checking
See https://github.com/getpelican/pelican/issues/2011
This commit is contained in:
parent
f0c05686e5
commit
9185e0b7a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue