Properly escape file names for HTML exoprt
This commit is contained in:
parent
7316b87f62
commit
c7f14ecb3a
@ -78,7 +78,7 @@ class ExportController extends Controller {
|
||||
flat_tree.push({
|
||||
level,
|
||||
page,
|
||||
file_name: `${page.Name.replace(/\s/g, '-')}-${page.UUID}.html`,
|
||||
file_name: `${page.Name.replace(/\s/g, '-').replace(/\/\\/g, '-')}-${page.UUID}.html`,
|
||||
})
|
||||
|
||||
const children = await page.childPages
|
||||
|
Loading…
Reference in New Issue
Block a user