This commit is contained in:
JesseLine 2026-04-22 01:32:57 -04:00 committed by GitHub
commit a73c373d75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

3
RELEASE.md Normal file
View file

@ -0,0 +1,3 @@
Release type: patch
Sanitize slashes in WordPress import titles to prevent crash. Fixes #3561

View file

@ -968,6 +968,9 @@ def fields2pelican(
if is_pandoc_needed(in_markup) and not pandoc_version:
posts_require_pandoc.append(filename)
#Replace "/" with "-" in filename
filename = filename.replace("/", "-")
slug = (not disable_slugs and filename) or None
assert slug is None or filename == os.path.basename(filename), (
f"filename is not a basename: {filename}"