mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Encode single quotes in sitemap
This commit is contained in:
parent
b76f382054
commit
9a6cd9f296
|
|
@ -27,7 +27,7 @@ const buildFileSitemap = (path, excludePaths, callback) => {
|
|||
buildFileSitemap(entryPath, excludePaths, callback);
|
||||
}
|
||||
} else if (![".ini", ".url"].includes(extname(entry).toLowerCase())) {
|
||||
const encodedUrlEntryPath = encodeURI(urlEntryPath);
|
||||
const encodedUrlEntryPath = encodeURI(urlEntryPath).replace(/'/g, "%27");
|
||||
|
||||
xmlUrls.push(
|
||||
callback(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user